Revert "Creation of aclUsers window"

This reverts commit ee5ef02f50.
This commit is contained in:
Francis Lachapelle
2015-06-11 15:27:08 -04:00
parent 63b20c4ba2
commit 57791e384b
4 changed files with 31 additions and 254 deletions
@@ -108,41 +108,4 @@
return deferred.promise;
};
/**
* @function fetch
* @desc Fetch resources using a specific object, action and/or parameters
* @param {string} object_id - the object on which the action will be applied (ex: addressbook, calendar)
* @param {string} action - the action to be used in the URL
* @param {string} params - the url parameter
*/
Resource.prototype.fetch = function(object_id, action, params) {
var deferred = this._q.defer();
var object_id_path = object_id ? ("/" + object_id) : "";
var action_path = action ? ("/" + action) : "";
var params_path = params ? ("?" + params) : "";
var path = this._path + object_id_path + action_path + params_path;
this._http
.get(path)
.success(deferred.resolve)
.error(deferred.reject);
return deferred.promise;
};
Resource.prototype.saveAclUsers = function(object_id, action, data) {
var deferred = this._q.defer();
var object_id_path = object_id ? ("/" + object_id) : "";
var action_path = action ? ("/" + action) : "";
var path = this._path + object_id_path + action_path;
this._http
.post(path, data)
.success(deferred.resolve)
.error(deferred.reject);
return deferred.promise;
};
})();