Debugging on production, I'm loving it!
This commit is contained in:
parent
7b144a42af
commit
20b66480ef
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user