Archived
1

Another dumb typo fix

Starting in production day in a nutshell, yeah :D
This commit is contained in:
Vladimir Hodakov 2017-11-26 16:36:35 +04:00
parent 8d186b1dba
commit a0bfc6b32f

View File

@ -347,7 +347,7 @@ func (s *Squader) AddUserToSquad(update *tgbotapi.Update, adderRaw *dbmapping.Pl
return s.squadUserAdditionFailure(update) return s.squadUserAdditionFailure(update)
} }
if c.Users.PlayerBetterThan(&playerRaw, "admin") { if !c.Users.PlayerBetterThan(&playerRaw, "admin") {
_, ok = c.Users.GetProfile(playerRaw.ID) _, ok = c.Users.GetProfile(playerRaw.ID)
if !ok { if !ok {
return s.squadUserAdditionFailure(update) return s.squadUserAdditionFailure(update)