booleanifying the isAdmin return... now we're admins again! :)

v1.18.x
psychobunny 12 years ago
parent c9a3fac654
commit 1d860923d0

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

Loading…
Cancel
Save