mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +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
|
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)
|
return fmt.Errorf("invalid user role: %#v", role)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user