WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by Syam Mohan.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • May 28, 2015 at 6:34 am #9964
    Aaron Percival
    Participant

    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 🙂

    May 28, 2015 at 7:47 am #9966
    Syam Mohan
    Keymaster

    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

    May 29, 2015 at 8:06 am #10031
    Aaron Percival
    Participant

    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

    May 29, 2015 at 9:27 am #10033
    Syam Mohan
    Keymaster

    Hi Aaron,

    Can you try enabling all the capabilities under “Posts”?

    Thanks

    Syam

    June 1, 2015 at 6:12 am #10168
    Aaron Percival
    Participant

    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?

    June 1, 2015 at 9:33 am #10184
    Syam Mohan
    Keymaster

    Can you disable all the plugins and check?

    Thanks

    Syam

    June 3, 2015 at 2:09 am #10294
    Aaron Percival
    Participant

    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.

    June 3, 2015 at 8:30 pm #10364
    Syam Mohan
    Keymaster

    Glad to know that.

    Thanks

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Media Permissions – Delete Others Files’ is closed to new replies.
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions