role added to configuration
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user