@phenomlab Work now 😉
Detect if user is admin
-
Would you happen to know how to simply detect if a user is admin in code within custom JS CP…
var uid = req.user ? req.user.uid : 0; user.isAdministrator(uid, function(err, isAdmin) { });
is what i have tried but things are not declared…
-
@pwsincd I think you can use
userData.isAdmin = isAdmin;
if I’m not mistaken - see
Discover More
-
Solved NodeBB 3.0 alpha1 : Error on install
Configure • • DownPW -
Solved Custom badges
Customisation • • crazycells -
Solved Post Style View
Customisation • • cagatay -
Solved Error install plugin
Customisation • • DownPW -
Solved NodeBB 1.19.3
Performance • • DownPW