role added to configuration

This commit is contained in:
2023-11-06 22:25:00 +01:00
parent f6120640d2
commit fb24320552
3 changed files with 4 additions and 9 deletions

View File

@ -186,7 +186,7 @@ func (s *Server) AuthCallbackHandler() http.HandlerFunc {
}
found := false
for _, r := range roles.Roles {
if r == "whoami_admin" {
if r == config.RequiredRole {
found = true
}
}