mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
Fix remove role support
This commit is contained in:
parent
3cc006d4ce
commit
e5573a9b29
@ -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