This commit is contained in:
Barış Soner Uşaklı
2017-05-26 23:21:46 -04:00
parent dcf3db104b
commit 3d1b1a9423
8 changed files with 48 additions and 39 deletions

View File

@@ -14,23 +14,12 @@ privileges.userPrivilegeList = [
'upload:post:image',
'upload:post:file',
'purge',
'mods',
'moderate',
];
privileges.groupPrivilegeList = [
'groups:find',
'groups:read',
'groups:topics:read',
'groups:topics:create',
'groups:topics:reply',
'groups:posts:edit',
'groups:posts:delete',
'groups:topics:delete',
'groups:upload:post:image',
'groups:upload:post:file',
'groups:purge',
'groups:moderate',
];
privileges.groupPrivilegeList = privileges.userPrivilegeList.map(function (privilege) {
return 'groups:' + privilege;
});
privileges.privilegeList = privileges.userPrivilegeList.concat(privileges.groupPrivilegeList);