mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +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:
@@ -354,8 +354,8 @@ function createGlobalModeratorsGroup(next) {
|
||||
}
|
||||
|
||||
function giveGlobalPrivileges(next) {
|
||||
var groups = require('./groups');
|
||||
groups.join('cid:0:privileges:groups:chat', 'registered-users', next);
|
||||
var privileges = require('./privileges');
|
||||
privileges.global.give(['chat', 'upload:post:image'], 'registered-users', next);
|
||||
}
|
||||
|
||||
function createCategories(next) {
|
||||
|
||||
Reference in New Issue
Block a user