mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
isAdmin in header
This commit is contained in:
@@ -154,7 +154,7 @@ module.exports.server = server;
|
||||
}
|
||||
|
||||
user.isAdministrator(uid, function(err, isAdmin) {
|
||||
templateValues.adminDisplay = isAdmin ? 'show' : 'hide';
|
||||
templateValues.isAdmin = isAdmin;
|
||||
|
||||
translator.translate(templates.header.parse(templateValues), function(template) {
|
||||
callback(null, template);
|
||||
|
||||
Reference in New Issue
Block a user