Skip to content

Commit

Permalink
convert leading tabs to spaces (stylistic)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurko-gospodnetic committed Jun 25, 2015
1 parent 0d8f076 commit b4cad6a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/acl.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ Acl.prototype.addUserRoles = function(userId, roles, cb){
if (Array.isArray(roles)) {
var _this = this;

roles.forEach(function(role) {
_this.backend.add(transaction, _this.options.buckets.roles, role, userId);
});
roles.forEach(function(role) {
_this.backend.add(transaction, _this.options.buckets.roles, role, userId);
});
}
else {
this.backend.add(transaction, this.options.buckets.roles, roles, userId);
this.backend.add(transaction, this.options.buckets.roles, roles, userId);
}

return this.backend.endAsync(transaction).nodeify(cb);
Expand Down Expand Up @@ -150,12 +150,12 @@ Acl.prototype.userRoles = function(userId, cb){
};

/**
roleUsers( roleName, function(err, users) )
roleUsers( roleName, function(err, users) )
Return all users who has a given role.
@param {String|Number} rolename.
@param {Function} Callback called when finished.
@return {Promise} Promise resolved with an array of users
Return all users who has a given role.
@param {String|Number} rolename.
@param {Function} Callback called when finished.
@return {Promise} Promise resolved with an array of users
*/
Acl.prototype.roleUsers = function(roleName, cb){
return this.backend.getAsync(this.options.buckets.roles, roleName).nodeify(cb);
Expand Down

0 comments on commit b4cad6a

Please sign in to comment.