diff --git a/lib/user/user.js b/lib/user/user.js index c17b2f0..9f1a912 100644 --- a/lib/user/user.js +++ b/lib/user/user.js @@ -48,7 +48,7 @@ User.prototype.isGatherAdmin = function () { }; User.prototype.isUserAdmin = function () { - return this.admin || this.moderator; + return this.admin; }; User.prototype.getSteamId = function () { diff --git a/spec/user.js b/spec/user.js index cbf481e..0adb859 100644 --- a/spec/user.js +++ b/spec/user.js @@ -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());