mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Add tests for role checks, update test.db
This commit is contained in:
@@ -76,7 +76,6 @@ func getRoleEnum(roleStr string) Role {
|
||||
|
||||
func isValidRole(role string) bool {
|
||||
if getRoleEnum(role) == RoleError {
|
||||
log.Errorf("Unknown Role %s", role)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
Reference in New Issue
Block a user