mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-18 20:40:12 +02:00
breaking: remove socket.emit('admin.categories.setPrivilege') and socket.emit('admin.categories.getPrivilegeSettings')
This commit is contained in:
@@ -19,11 +19,10 @@ AdminsMods.get = async function (req, res, next) {
|
||||
if (!selectedCategory) {
|
||||
return next();
|
||||
}
|
||||
const [admins, globalMods, moderators, categoryPrivList] = await Promise.all([
|
||||
const [admins, globalMods, moderators] = 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', {
|
||||
@@ -31,7 +30,6 @@ AdminsMods.get = async function (req, res, next) {
|
||||
globalMods: globalMods,
|
||||
categoryMods: [moderators],
|
||||
selectedCategory: selectedCategory,
|
||||
allPrivileges: categoryPrivList,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user