Add tests for role checks, update test.db

This commit is contained in:
Christoph Kluge
2023-03-06 16:32:58 +01:00
parent f37e7c26f6
commit cae7257673
3 changed files with 128 additions and 1 deletions

View File

@@ -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