refactor: privileges, export modules directly (#9325)

fix unused/commented out methods in admin privileges
This commit is contained in:
Barış Soner Uşaklı
2021-02-24 18:10:34 -05:00
committed by GitHub
parent 984c9dd915
commit 293b7c2650
12 changed files with 1015 additions and 1020 deletions

View File

@@ -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) {