mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix: give default privs on new install to guests/spiders
This commit is contained in:
@@ -59,7 +59,6 @@
|
||||
"allowProfileImageUploads": 1,
|
||||
"teaserPost": "last-reply",
|
||||
"allowPrivateGroups": 1,
|
||||
"allowGroupCreation": 0,
|
||||
"unreadCutoff": 2,
|
||||
"bookmarkThreshold": 5,
|
||||
"autoDetectLang": 1,
|
||||
|
||||
@@ -388,7 +388,17 @@ function giveGlobalPrivileges(next) {
|
||||
'search:users', 'search:tags', 'view:users', 'view:tags', 'view:groups',
|
||||
'local:login',
|
||||
];
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
privileges.global.give(defaultPrivileges, 'registered-users', next);
|
||||
},
|
||||
function (next) {
|
||||
privileges.global.give(['view:users', 'view:tags', 'view:groups'], 'guests', next);
|
||||
},
|
||||
function (next) {
|
||||
privileges.global.give(['view:users', 'view:tags', 'view:groups'], 'spiders', next);
|
||||
},
|
||||
], next);
|
||||
}
|
||||
|
||||
function createCategories(next) {
|
||||
|
||||
Reference in New Issue
Block a user