mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Problem: we are showing inactive users in lists
Solution: allow optional parameter to show/hide inactive users
This commit is contained in:
parent
90eb4f9517
commit
fa0f176613
5 changed files with 73 additions and 10 deletions
|
@ -191,6 +191,14 @@ func SyncKeycloak(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Exit if not using Keycloak
|
||||
if org.AuthProvider != "keycloak" {
|
||||
result.Message = "Skipping user sync with Keycloak as it is not the configured option"
|
||||
log.Info(result.Message)
|
||||
util.WriteJSON(w, result)
|
||||
return
|
||||
}
|
||||
|
||||
// Make Keycloak auth provider config
|
||||
c := keycloakConfig{}
|
||||
err = json.Unmarshal([]byte(org.AuthConfig), &c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue