mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
make upload permissions global
give upload image permission to registered users on install add global privileges to app.user.privileges for client side use
This commit is contained in:
@@ -221,3 +221,9 @@ helpers.getGroupPrivileges = function (cid, hookName, groupPrivilegeList, callba
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
helpers.giveOrRescind = function (method, privileges, cid, groupName, callback) {
|
||||
async.eachSeries(privileges, function (privilege, next) {
|
||||
method('cid:' + cid + ':privileges:groups:' + privilege, groupName, next);
|
||||
}, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user