teams: changed permission to permission type instead of int
This commit is contained in:
committed by
Leonard Gram
parent
c826f39a8b
commit
246e128048
@@ -271,7 +271,7 @@ func UpdateTeamMember(cmd *m.UpdateTeamMemberCommand) error {
|
||||
return m.ErrTeamMemberNotFound
|
||||
}
|
||||
|
||||
if cmd.Permission != int64(m.PERMISSION_ADMIN) {
|
||||
if cmd.Permission != m.PERMISSION_ADMIN {
|
||||
cmd.Permission = 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user