Roomsettings: Change variable spelling (#2935)

minor syntaxic change "atuh" → "auth"
This commit is contained in:
Lionyx
2016-11-23 00:01:25 +01:00
committed by Guangcong Luo
parent 35021489ae
commit 848fcd2c2b

View File

@@ -45,10 +45,10 @@ class RoomSettings {
} else if (RANKS[i]) {
let rankIndex = RANKS.indexOf(RANKS[i]);
let roomAuth = (this.room.auth && this.room.auth[this.user.userid] ? this.room.auth[this.user.userid] : false);
let roomAtuhIndex = (roomAuth ? RANKS.indexOf(roomAuth) : false);
let roomAuthIndex = (roomAuth ? RANKS.indexOf(roomAuth) : false);
if (rankIndex > 1 && !this.user.can('modchatall', null, this.room)) continue;
if (roomAuth && !this.user.can('bypassall')) {
if (rankIndex > roomAtuhIndex) continue;
if (rankIndex > roomAuthIndex) continue;
}
modchatOutput.push(this.button(RANKS[i], null, `modchat ${RANKS[i]}`));
}