mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 14:23:04 +02:00
feat: limit privileges column to superadmins only
This commit is contained in:
@@ -17,7 +17,7 @@ privilegesController.get = async function (req, res) {
|
||||
}
|
||||
|
||||
const [privilegesData, categoriesData] = await Promise.all([
|
||||
method(),
|
||||
method(isAdminPriv ? req.uid : undefined),
|
||||
categories.buildForSelectAll(),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user