Skip to content

Node.js based forum software built for the modern web

fix: show controls @julianlam

Barış Soner Uşaklı023de94ef8be
diff --git a/src/controllers/admin/dashboard.js b/src/controllers/admin/dashboard.js
index bf9081ced9..89d8c1b222 100644
--- a/src/controllers/admin/dashboard.js
+++ b/src/controllers/admin/dashboard.js
@@ -21,7 +21,7 @@ dashboardController.get = async function (req, res) {
getNotices(),
getLatestVersion(),
getLastRestart(),
- user.isAdministrator(),
+ user.isAdministrator(req.uid),
]);
const version = nconf.get('version');