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

COMCL-730: Fix Case Permissions Issue #1039

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

shahrukh-compuco
Copy link

Overview

This pr fixes an issue with case permissions which led to permissions being cached and did not change when the user role was changed.

Before

For example the user without delete permission was able to see the delete case option
Screenshot 2024-08-21 at 5 27 36 PM

After

Screenshot 2024-08-21 at 5 17 30 PM

Technical Details

Previously the case actions were being provided as part of civicase.ang.php which is read only once and then its cached for the rest of the users. So if a user with admin permission uses the site first then all other non admin users will also see the same options on the cases screens. This pr moves the cases actions and other settings to a settings factory which leads to refreshing the settings for each page load.

@shahrukh-compuco shahrukh-compuco force-pushed the comcl-730-fix-case-permissions-issue branch from 0ace735 to c263d27 Compare August 21, 2024 12:55
@shahrukh-compuco shahrukh-compuco merged commit 2efcfef into master Aug 21, 2024
2 checks passed
@shahrukh-compuco shahrukh-compuco deleted the comcl-730-fix-case-permissions-issue branch August 21, 2024 13:45
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