mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
refactor: privileges, export modules directly (#9325)
fix unused/commented out methods in admin privileges
This commit is contained in:
committed by
GitHub
parent
984c9dd915
commit
293b7c2650
@@ -48,7 +48,7 @@ module.exports = function (Categories) {
|
||||
`cid:${cid}:tag:whitelist`,
|
||||
`category:${cid}`,
|
||||
]);
|
||||
await groups.destroy(privileges.privilegeList.map(privilege => `cid:${cid}:privileges:${privilege}`));
|
||||
await groups.destroy(privileges.categories.privilegeList.map(privilege => `cid:${cid}:privileges:${privilege}`));
|
||||
}
|
||||
|
||||
async function removeFromParent(cid) {
|
||||
|
||||
Reference in New Issue
Block a user