From 45947b67dfb88bd5beea1e1fd95a58c47c9cbbc9 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Thu, 22 Oct 2015 14:42:33 +0100 Subject: [PATCH] Fix user permissions --- lib/user/user.js | 2 +- spec/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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());