- This topic has 7 replies, 2 voices, and was last updated 10 years, 5 months ago by
Syam Mohan.
-
AuthorPosts
-
May 28, 2015 at 6:34 am #9964
Aaron Percival
ParticipantHi 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 🙂
May 28, 2015 at 7:47 am #9966Syam Mohan
KeymasterHi 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
May 29, 2015 at 8:06 am #10031Aaron Percival
ParticipantHi 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
May 29, 2015 at 9:27 am #10033Syam Mohan
KeymasterHi Aaron,
Can you try enabling all the capabilities under “Posts”?
Thanks
Syam
June 1, 2015 at 6:12 am #10168Aaron Percival
ParticipantHi 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?
June 1, 2015 at 9:33 am #10184Syam Mohan
KeymasterCan you disable all the plugins and check?
Thanks
Syam
June 3, 2015 at 2:09 am #10294Aaron Percival
ParticipantActually, 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.
June 3, 2015 at 8:30 pm #10364Syam Mohan
KeymasterGlad to know that.
Thanks
-
AuthorPosts
- The topic ‘Media Permissions – Delete Others Files’ is closed to new replies.
