-
Notifications
You must be signed in to change notification settings - Fork 754
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
[Bug]: Resource manager permissions not being saved properly #6045
Comments
I would like to work on a fix for this issue, I already have a fix ready to go, so ETA can be an hour |
This has some (obvious?) overlap with #5857, "[Bug]: Resource Manager Error: cannot Remove Permissions on Folders" that I posted with a lot of details and easy to reproduce steps in Nov, 2023. |
@jeremy-farrance You are right it does, I assumed from the title and did not check to see that you reported saving issue as well. |
Root Cause
But the view dbo.[vw_FolderPermissions] provides null as the value for PortalId for these saved permissions. And then when permissions are saved, it would not load the saved permissions on the UI.
Example: when 'Read' is disabled, both 'Browse' and 'Write to folder' are disabled if enabled previously.
This causes the view and saved data discrepancies. Fix
Submitted a PR -#6046 |
Is there an existing issue for this?
What happened?
On attempting to save permissions from the resource manager there are 3 issues:
Steps to reproduce?
1st issue
Access the menu Persona Bar > Manage > Global Assets
Right-click the Templates folder > Edit > Go to the Permissions tab
Add the "Write to folder" permission to "registered users" and save
Right-click the Templates folder > Edit > Go to the Permissions
Note that updated permissions do not reflect on the UI
Check the data in the db, there should be records saved
2nd issue
Access the menu Persona Bar > Manage > Global Assets
Right-click the Templates folder > Edit > Go to the Permissions tab
Deny the "View Folder" permission then Add the "Browse Folder" permission and then save
Check the data is saved in the db, it does not reflect the UI, as all reflect as AllowAccess=0, while one of them should be AllowAccess=1
3rd issue
Add an extra permission to the permissions table on the database, you can use this query
INSERT INTO [dbo].[Permission]([PermissionCode],[ModuleDefID],[PermissionKey],[PermissionName],[ViewOrder]) VALUES ('SYSTEM_FOLDER',-1,'COPY','Copy',1)
Restart the app on iis to reload the cache
Access the menu Persona Bar > Manage > Global Assets
Right-click the Templates folder > Edit > Go to the Permissions tab
Add all permissions and save
Check the data is saved in the db, it does not reflect the UI, as only 3 permissions are saved, instead of 4
Current Behavior
Permissions not being saved properly and not being shown when saved
Expected Behavior
Permissions being saved properly and shown when saved
Relevant log output
No response
Anything else?
No response
Affected Versions
9.13.3 (latest release)
What browsers are you seeing the problem on?
Chrome
Code of Conduct
The text was updated successfully, but these errors were encountered: