You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RM in user mode can allow users to view files in sub directories but they can only delete or add files in their root folder.
Steps to reproduce
Go to a page with the RM module and it's settings in user mode with the Users directory as it's default path.
Log in as a user with access to the RM. Ensure the test user has a subdirectory with a file by adding it as an admin or uploading a zip with a directory and a test file.
Try to upload a file to the subdirectory or delete an existing file within a sub directory.
There is no error but these actions are not accessible outside the users root folder.
Current behavior
Users cannot add or delete files from sub directories that are within their root folder (ie 011/11/11/testdir/).
Expected behavior
Users should be able to add files and delete files from within any sub directory inside of their root folder.
Screenshots
Error information
No errors occur.
Additional context
The PermissionManager is using a IsUserFolder check that prevents the sub directories from passing the HasDeletePermission and HasAddFilesPermission bool function calls.
I have also just upgraded from 9.9.1 to 9.11.0 - Everything appears OK except the Resource Manager.
In my site I have a page accessible to a Role called Approver and in 9.9.1 with the previous "File Manager" only a folder called Docs2021 was accessible for them into which they could add Documents. Since upgrading to 9.11.0 and selecting the Telerik removal process the replacement module Resource Manager shows extra folders (Templates and Users) and some files in the Site Root. The Role can now only get the URL of the file or download existing ones. I have provided permission to all options View, Edit and Write but still the Upload option is not available.
Interestingly if I am logged in as SuperUser and go to the page I also cannot Upload but if if use the Site Assets from the Persona Bar I can navigate to that folder and upload, hopefully that will provide some assistance in debugging. Let me know if you need any further info :-)
Description of bug
The RM in user mode can allow users to view files in sub directories but they can only delete or add files in their root folder.
Steps to reproduce
Current behavior
Users cannot add or delete files from sub directories that are within their root folder (ie 011/11/11/testdir/).
Expected behavior
Users should be able to add files and delete files from within any sub directory inside of their root folder.
Screenshots
Error information
No errors occur.
Additional context
The PermissionManager is using a IsUserFolder check that prevents the sub directories from passing the HasDeletePermission and HasAddFilesPermission bool function calls.
Dnn.Platform/DNN Platform/Modules/ResourceManager/Components/PermissionsManager.cs
Line 62 in 116c8bc
Affected version
Affected browser
The text was updated successfully, but these errors were encountered: