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

Don't try to change enabled status of current user #610

Merged

Conversation

askask
Copy link
Contributor

@askask askask commented Jul 29, 2024

The currently logged-in user can't change their own enabled status, however on clicking Save in the user edit dialog the changeUserEnabledStatus method is still called. Because of this, on server side a ForbiddenException is thrown and the dialog window does not close. With this commit a check is added not to call the method.

The currently logged-in user can't change their own enabled status, however on clicking Save in the user edit dialog the changeUserEnabledStatus method is still called.
Because of this, on server side a ForbiddenException is thrown and the dialog window does not close.
With this commit a check is added not to call the method.
@askask askask marked this pull request as draft July 29, 2024 15:10
@askask askask marked this pull request as ready for review July 29, 2024 15:10
@mafasva mafasva marked this pull request as draft July 31, 2024 09:39
@mafasva mafasva marked this pull request as ready for review July 31, 2024 09:39
@ramueSVA ramueSVA merged commit 4a94679 into NUM-Forschungsdatenplattform:develop Jul 31, 2024
6 checks passed
@askask askask deleted the feature/user-edit branch August 26, 2024 16:38
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.

3 participants