teams: changed permission to permission type instead of int

This commit is contained in:
Hugo Häggmark
2019-03-19 14:01:14 +01:00
committed by Leonard Gram
parent c826f39a8b
commit 246e128048
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
}