teams: comment explaining input validation
Co-Authored-By: xlson <leo@xlson.com>
This commit is contained in:
1 parent
3f57a81c47
commit
6a63725df0
1 file changed
+1
-1
@@ -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