Skip to content

Commit

Permalink
fix: permissions error for LDAP login
Browse files Browse the repository at this point in the history
  • Loading branch information
RJPvT authored Jan 8, 2024
1 parent a5f5db0 commit 53db0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raven/raven/doctype/raven_user/raven_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def add_user_to_raven(doc,method):
if not doc.full_name:
raven_user.full_name = doc.first_name
raven_user.enabled = 0
raven_user.save()
raven_user.save(ignore_permissions=True)
else:
# Raven user does not exist. Check if the user is a system user.
if doc.user_type == "System User":
Expand All @@ -111,4 +111,4 @@ def add_user_to_raven(doc,method):
if not doc.full_name:
raven_user.full_name = doc.first_name
raven_user.enabled = 1
raven_user.insert()
raven_user.insert(ignore_permissions=True)

0 comments on commit 53db0aa

Please sign in to comment.