Archived
1

Debugging on production, I'm loving it!

This commit is contained in:
Vladimir Hodakov 2018-02-17 17:07:25 +04:00
parent 7b144a42af
commit 20b66480ef

View File

@ -60,6 +60,7 @@ func (s *Squader) getPlayersForSquad(squadID int) ([]dbmapping.SquadPlayerFull,
func (s *Squader) isUserAnyCommander(playerID int) bool { func (s *Squader) isUserAnyCommander(playerID int) bool {
userRoles := c.DataCache.GetUserRolesInSquads(playerID) userRoles := c.DataCache.GetUserRolesInSquads(playerID)
for i := range userRoles { 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" { if userRoles[i].UserRole == "commander" {
return true return true
} }