Skip to content

Node.js based forum software built for the modern web

fix: apply some DRY

Julian Lama3b4c668d538
diff --git a/src/privileges/global.js b/src/privileges/global.js
index c614d82f86..00cf0cce05 100644
--- a/src/privileges/global.js
+++ b/src/privileges/global.js
@@ -70,8 +70,8 @@ privsGlobal.list = async function () {
}
const keys = await utils.promiseParallel({
- users: plugins.hooks.fire('filter:privileges.global.list', privsGlobal.userPrivilegeList.slice()),
- groups: plugins.hooks.fire('filter:privileges.global.groups.list', privsGlobal.groupPrivilegeList.slice()),
+ users: privsGlobal.getUserPrivilegeList(),
+ groups: privsGlobal.getGroupPrivilegeList(),
});
const payload = await utils.promiseParallel({