diff --git a/src/user.js b/src/user.js index ac40e37703..790fdd7c6b 100644 --- a/src/user.js +++ b/src/user.js @@ -772,7 +772,7 @@ var utils = require('./../public/src/utils.js'), User.isAdministrator = function(uid, callback) { Groups.getGidFromName('Administrators', function(err, gid) { Groups.isMember(uid, gid, function(err, isAdmin) { - callback(isAdmin); + callback(!!isAdmin); }); }); }