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:
Claude (Chronicler #57)
2026-04-03 17:36:22 +00:00
parent 8919f5b61d
commit 350096b02c

View File

@@ -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'