- This topic has 7 replies, 2 voices, and was last updated 10 years ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘Media Permissions – Delete Others Files’ is closed to new replies.
Hi there,
I brought the Personal Pro version of this plugin as I was interested in it for the Media Permissions. However, I can’t seem to get those permissions to work. I tried adding all the Media capabilities to various roles and I still wasn’t able to delete existing files in the Media library.
I also tried creating a role from scratch and giving it all the Media capabilities and still wasn’t able to delete these files.
That functionality was the reason I brought the plugin. Any advice would be greatly appreciated 🙂
Hi Aaron,
Media Permissions gives you one more layer of restriction which WordPress doesn’t support by default. In WordPress media permissions checks against post capabilities. To delete a media they will need delete_posts capability. delete_posts capability allow them to delete their own posts as well as media. This check happens within the WordPress core. If you want a setting where you want the user to delete the posts but not the media, that’s when WPFront Media Permissions help you. So try giving the role delete_posts capability.
Thanks
Syam
Hi Syam,
I tried giving the new role I created (Media Editors) the delete_posts capability and it didn’t help.
I’ve got all my users set as Subscribers as default. I’m using Press Permit Core to then permission out the ability to edit certain pages and all their children pages. Press Permit Core then makes them Editors of those specific pages. I tried giving them an additional role as Media Editor with all Media options ticked and delete_posts unticked.
Is there anything that might be going wrong there?
Thanks
Hi Aaron,
Can you try enabling all the capabilities under “Posts”?
Thanks
Syam
Hi Syam,
The Media Editor role now have all options under Media and Posts ticked. I still can’t delete the media (I can know assign Media Categories which was going to be another question so that’s been sorted, woo!)
Anything else?
Can you disable all the plugins and check?
Thanks
Syam
Actually, it was me being silly. I was logging in with the wrong test account. Adding delete_posts and delete_others_posts worked.
You can mark this as resolved.
Thanks for your help.
Glad to know that.
Thanks