mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 21:09:05 +01:00
Merge pull request #75 from giesselmann/fix_remove_role_support
Fix remove role support
This commit is contained in:
commit
ded5cda6ba
@ -143,7 +143,7 @@ func (auth *Authentication) RemoveRole(ctx context.Context, username string, rol
|
||||
return err
|
||||
}
|
||||
|
||||
if role != RoleAdmin && role != RoleApi && role != RoleUser {
|
||||
if role != RoleAdmin && role != RoleApi && role != RoleUser && role != RoleSupport {
|
||||
return fmt.Errorf("invalid user role: %#v", role)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user