From b4cad6a8c61e0211f61f9adde8b85121f0bae78b Mon Sep 17 00:00:00 2001 From: Jurko Date: Thu, 25 Jun 2015 10:31:07 +0200 Subject: [PATCH] convert leading tabs to spaces (stylistic) --- lib/acl.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/acl.js b/lib/acl.js index 265fd7a..124e1ed 100644 --- a/lib/acl.js +++ b/lib/acl.js @@ -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); @@ -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);