mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-01 13:12:19 +00:00
Refactor acl object and applied comments
This commit is contained in:
committed by
Francis Lachapelle
parent
b4128f97a6
commit
bc19f910f6
@@ -117,11 +117,9 @@
|
||||
* @param {Object} params - Object parameters injected through the $http protocol
|
||||
*/
|
||||
Resource.prototype.fetch = function(folder_id, action, params) {
|
||||
var deferred = this._q.defer();
|
||||
var folder_id_path = folder_id ? ("/" + folder_id) : "";
|
||||
var action_path = action ? ("/" + action) : "";
|
||||
|
||||
var path = this._path + folder_id_path + action_path;
|
||||
var deferred = this._q.defer(),
|
||||
path = [this._path, (folder_id ? folder_id : ""), (action ? action : "")];
|
||||
path = _.compact(path).join("/");
|
||||
|
||||
this._http({
|
||||
method: 'GET',
|
||||
|
||||
Reference in New Issue
Block a user