OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Media Library Permissions #5188

Open jonvee opened 9 years ago

jonvee commented 9 years ago

Not sure if this is the right place to post this, but I'm curious how to add permissions to the media library. Currently the only option is to allow manage media library, however this allows a user to access and delete other images not just their own. Is there a way to set permissions on either media folders or somehow restrict users to only access their own images? For this particular site, we have a number of photographers contributing photo albums so currently we either have to know and trust them explicitly to not mess with other users' media or have them send my client their photos and have a trusted user add the albums, but this is far from ideal.

sebastienros commented 9 years ago

At least because Media Items are content items, you can create a custom permission handler which would limit your custom folders by role. On the long term we could have something like this baked into the module.