fix: rename user to adminUser for layout template
Layout expects adminUser variable for sidebar profile display Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>
This commit is contained in:
@@ -16,7 +16,7 @@ router.get('/', isAdmin, async (req, res) => {
|
||||
const mappings = getRoleMappings();
|
||||
res.render('admin/dashboard', {
|
||||
title: 'Dashboard',
|
||||
user: req.user,
|
||||
adminUser: req.user,
|
||||
csrfToken: req.csrfToken(),
|
||||
mappings: mappings,
|
||||
currentPath: '/dashboard'
|
||||
|
||||
Reference in New Issue
Block a user