mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Fix auth bug
Users with channel rank but no global rank were not properly authenticated.
This commit is contained in:
parent
9ede4dbc2d
commit
24f14530a4
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ Channel.prototype.createTables = function() {
|
|||
|
||||
// Retrieves a user's rank from the database
|
||||
Channel.prototype.getRank = function(name) {
|
||||
if(!this.isRegistered)
|
||||
if(!this.registered)
|
||||
return Rank.Guest;
|
||||
var db = mysql.createConnectionSync();
|
||||
db.connectSync(Config.MYSQL_SERVER, Config.MYSQL_USER,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue