dnnsoftware / Dnn.Platform

DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
https://dnncommunity.org/
MIT License
1.02k stars 746 forks source link

[Enhancement]: Resource Mgr: copy permissions to subfolders #5904

Open dgingold opened 8 months ago

dgingold commented 8 months ago

Is there an existing issue for this?

Description of problem

the old file manager could copy permissions down to subfolders. This is a sorely missed feature of Resource Manager. My client said they'd never have moved to DNN if they knew the many subfolders of files they had would need to be manually modified one by one.

Description of solution

provide a checkbox in Resource Manager folder edit > permissions to copy current folder's permissions to all subfolders, meaning recursively through all subfolders below the current folder. This functionality needs to work for both files local to the site (ie, in the /portals/ folders and offsite folders via providers like Azure Connector and Evotiva Global Storage (since my specific issue has its files in offsite storage)

Description of alternatives considered

Is there a SQL statement that will accomplish this as a stop-gap measure? I have 50GB of files that have been moved from another site as we migrated that site into a section of an existing DNN site. Can the old file manager be reinstalled (frankly I'd rather do a SQL statement than to add and then untangle the file manager after running the permission copy)

Anything else?

No response

Do you be plan to contribute code for this enhancement?

Would you be interested in sponsoring this enhancement?

Code of Conduct

6TELOIV commented 3 months ago

For implementation, the API (partially) exists already through DotNetNuke.Services.FileSystem.FolderManager.CopyParentFolderPermissions and would just need to recursively be called on children folders of the selected folder.

jeremy-farrance commented 3 months ago

I am posting this because I believe it is related (see linked issue)... Yes, we've run in to this also and our client said a very similar thing. And his comments got even worse when he discovered modifying permissions on existing folders doesn't work either (#5857). Luckily this was months ago and he is back in the happiness zone. I hope after DNN v10 comes out, there will be time to circle back to Resource Manage for a little TLC.