Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: permissions error for LDAP login #616

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

RJPvT
Copy link
Contributor

@RJPvT RJPvT commented Jan 8, 2024

Currently with an LDAP login the frappe User stays Guest until DESK is loaded. Guest however does not have permission to create Raven User so an Error is given (and login is not possible)

Schermafbeelding 2024-01-08 083119-1

@nikkothari22
Copy link
Member

@RJPvT Would there be a better way to handle this instead of ignoring permissions altogether. Maybe we skip creating a Raven User when the user is logging in using LDAP?

@RJPvT
Copy link
Contributor Author

RJPvT commented Jan 9, 2024

@nikkothari22 there is no disctinction in ERPNEXT. LDAP login just saves the login date before the set_user. i've tried to have that resolved al lot of times but since it's breaking nobody wants to approve the PR. ignore_permissions in this case is not a problem since this subroutine can only be called from a logged in user and always calls the needed document (get_doc) or insert.

@nikkothari22 nikkothari22 merged commit 0fe375b into The-Commit-Company:develop Jan 12, 2024
2 checks passed
@RJPvT RJPvT deleted the patch-1 branch January 12, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants