Fix user permissions

This commit is contained in:
Chris Blanchard 2015-10-22 14:42:33 +01:00
parent 6481da2270
commit 45947b67df
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ User.prototype.isGatherAdmin = function () {
};
User.prototype.isUserAdmin = function () {
return this.admin || this.moderator;
return this.admin;
};
User.prototype.getSteamId = function () {

View file

@ -91,7 +91,7 @@ describe("User", () => {
user.moderator = false;
assert.isTrue(user.isUserAdmin());
});
it ("returns true if moderator", () => {
it ("returns false if moderator", () => {
user.admin = false;
user.moderator = true;
assert.isTrue(user.isUserAdmin());