@phenomlab yes , it is fixed 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
https://community.nodebb.org/topic/15128/how-to-hide-whitelist-user-field-only-to-owner-or-admin?_=1648802303112 for an example
-
Bug Report
Solved Bugs7 -
NodeBB v3 Chat Very Slow
Moved Performance47 -
nodebb loading emojis
Solved Configure16 -
Custom badges
Solved Customisation103 -
-
NodeBB Footer
Solved Customisation10 -
NodeBB Discord Plugins
Unsolved Customisation7 -
WordPress & NodeBB
Solved WordPress6