mirror of https://github.com/calzoneman/sync.git
Fix auth bug
Users with channel rank but no global rank were not properly authenticated.
This commit is contained in:
parent
9ede4dbc2d
commit
24f14530a4
|
@ -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…
Reference in New Issue