mirror of https://gitgud.io/fatchan/jschan.git
merge-requests/346/merge
parent
993924a5f2
commit
e511c67efa
9 changed files with 24 additions and 15 deletions
@ -1,17 +1,19 @@ |
||||
'use strict'; |
||||
|
||||
const { Roles } = require(__dirname+'/../../../db/') |
||||
, roles = require(__dirname+'/../../../helpers/roles.js'); |
||||
|
||||
module.exports = async (req, res, next) => { |
||||
|
||||
const roles = await Roles.find(); |
||||
const allRoles = await Roles.find(); |
||||
|
||||
res |
||||
.set('Cache-Control', 'private, max-age=5') |
||||
.render('globalmanageroles', { |
||||
csrf: req.csrfToken(), |
||||
permissions: res.locals.permissions, |
||||
roles, |
||||
allRoles, |
||||
roleNameMap: roles.roleNameMap, |
||||
}); |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue