Skip to content

Commit

Permalink
fix hidden users
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Oct 19, 2023
1 parent 518a3dd commit 22773f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lac/idm/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def ldap_get_all_users():
return users

def ldap_is_system_user(cn):
hidden_users = hidden_users.lower()
hidden_users = settings.HIDDEN_LDAP_USERS.lower()
hidden_users = hidden_users.split(",")
cn = cn.lower()
return cn == "guest" or cn == "krbtgt" or cn == "administrator" or cn == "admin" or cn in hidden_users
Expand Down

0 comments on commit 22773f5

Please sign in to comment.