mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
feat: add privileges shortcut to groups list
fix issues with escape group names
This commit is contained in:
@@ -21,13 +21,15 @@ groupsController.list = async function (req, res) {
|
||||
const pageCount = Math.ceil(groupNames.length / groupsPerPage);
|
||||
const start = (page - 1) * groupsPerPage;
|
||||
const stop = start + groupsPerPage - 1;
|
||||
|
||||
groupNames = groupNames.slice(start, stop + 1);
|
||||
|
||||
const allCategories = await categories.buildForSelectAll();
|
||||
const groupData = await groups.getGroupsData(groupNames);
|
||||
res.render('admin/manage/groups', {
|
||||
groups: groupData,
|
||||
pagination: pagination.create(page, pageCount),
|
||||
yourid: req.uid,
|
||||
categories: allCategories,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user