isAdmin in header

This commit is contained in:
psychobunny
2014-02-02 14:38:04 -05:00
parent 214b74abc9
commit 1c1c5da8f2
2 changed files with 4 additions and 2 deletions

View File

@@ -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);