hdkv
/
i2_bot
Archived
1
Fork 0

Debugging on production, I'm loving it!

master
Vladimir Hodakov 2018-02-17 17:07:25 +04:00
parent 7b144a42af
commit 20b66480ef
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func (s *Squader) getPlayersForSquad(squadID int) ([]dbmapping.SquadPlayerFull,
func (s *Squader) isUserAnyCommander(playerID int) bool {
userRoles := c.DataCache.GetUserRolesInSquads(playerID)
for i := range userRoles {
c.Log.Debug("Role for squad with ID=" + strconv.Itoa(userRoles[i].Squad.Squad.ID) + ":" + userRoles[i].UserRole)
if userRoles[i].UserRole == "commander" {
return true
}