mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
teams: comment explaining input validation
Co-Authored-By: xlson <leo@xlson.com>
This commit is contained in:
committed by
Leonard Gram
co-authored by
xlson
parent
3f57a81c47
commit
6a63725df0
@@ -283,7 +283,7 @@ func UpdateTeamMember(cmd *m.UpdateTeamMemberCommand) error {
|
||||
|
||||
}
|
||||
|
||||
if cmd.Permission != m.PERMISSION_ADMIN {
|
||||
if cmd.Permission != m.PERMISSION_ADMIN { // make sure we don't get invalid permission levels in store
|
||||
cmd.Permission = 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user