mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 17:58:38 +02:00
fix: privileges added by plugins (#9802)
* fix: privileges added by plugins when copying a categories privileges, privileges added by plugins will be copied as well when purging a category privileges added by plugins will be purged as well show plugin privileges in privileges.<categories/admin/global>.get show plugin privileges in privileges.<categories/admin/global>.userPrivileges show plugin privileges in privileges.<categories/admin/global>.groupPrivileges * fix: typo
This commit is contained in:
committed by
GitHub
parent
506035b5f7
commit
3ecbb624d8
@@ -19,10 +19,11 @@ AdminsMods.get = async function (req, res, next) {
|
||||
if (!selectedCategory) {
|
||||
return next();
|
||||
}
|
||||
const [admins, globalMods, moderators] = await Promise.all([
|
||||
const [admins, globalMods, moderators, categoryPrivList] = await Promise.all([
|
||||
groups.get('administrators', { uid: req.uid }),
|
||||
groups.get('Global Moderators', { uid: req.uid }),
|
||||
getModeratorsOfCategories(selectedCategory),
|
||||
privileges.categories.getUserPrivilegeList(),
|
||||
]);
|
||||
|
||||
res.render('admin/manage/admins-mods', {
|
||||
@@ -30,7 +31,7 @@ AdminsMods.get = async function (req, res, next) {
|
||||
globalMods: globalMods,
|
||||
categoryMods: [moderators],
|
||||
selectedCategory: selectedCategory,
|
||||
allPrivileges: privileges.categories.userPrivilegeList,
|
||||
allPrivileges: categoryPrivList,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user