teams: comment explaining input validation

Co-Authored-By: xlson <leo@xlson.com>
This commit is contained in:
Hugo Häggmark
2019-03-19 14:01:17 +01:00
committed by Leonard Gram
co-authored by xlson
parent 3f57a81c47
commit 6a63725df0
+1 -1
View File
@@ -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
}