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

Tagged: media attachments

  • This topic has 11 replies, 2 voices, and was last updated 8 years, 6 months ago by Syam Mohan.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • October 3, 2016 at 9:46 am #39552
    David Stein Design
    Spectator

    hi Syam – is there a way to restrict files in the media library to only logged in users, in a similar way that Posts / Pages extended permissions has the Role Permission check boxes? Is it possible to set Role permissions for files in the media library? I thought that the extended posts / pages permissions would do that but even if I restrict a page or post, any of the media files linked to from that page are not blocked.

    I’m trying to make certain images only view-able to logged in users.

    I looked into the Media Attachment File Permissions, thinking that might do it but I only found the option to enable users of certain roles to upload / delete media library files.

    Would the “read others attachments” option be what I would set for that? The documentation that says,

    read_others_attachments

    This capability is required to view files which are uploaded by others within the media library. Remove this capability to give a user access to only his/her own files.

    makes me think that it would do what i want to accomplish, but i have that unchecked for several user roles and when logged in, those users are able to view the content, even if it’s an image they didn’t upload.

    Am I misunderstanding what this does?

    thanks, david

    October 3, 2016 at 1:24 pm #39556
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 3, 2016 at 1:51 pm #39560
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 3, 2016 at 9:53 pm #39575
    Syam Mohan
    Keymaster

    Hi David,

    Extended permissions doesn’t limit the user from accessing the attachments uploaded to a post/page. This plugin does have ‘Media File Permissions’, as you have already seen, however it doesn’t limit anyone from accessing that resource directly by typing the URL to that attachment. That functionality requires URL rewrite, and has nothing to do with WordPress. Its a web server feature and will have to be implemented separately against each server type. Apache, Nginx, etc. So its not as straight forward as limiting posts or pages. I do have a to do item for this feature, but its feasibility needs to be tested. ‘Media File Permissions’ is more useful in the backend, like if you don’t want users to edit or delete other users attachments/files.

    Thanks

    Syam

    October 3, 2016 at 11:03 pm #39579
    David Stein Design
    Spectator

    Thanks Syam, appreciate the thorough response!

    October 3, 2016 at 11:26 pm #39581
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 4, 2016 at 4:50 pm #39624
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 6, 2016 at 10:06 pm #39732
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    October 8, 2016 at 11:23 pm #39871
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 18, 2016 at 9:17 pm #40391
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    October 18, 2016 at 9:24 pm #40393
    David Stein Design
    Spectator
    This reply has been marked as private.
    October 18, 2016 at 9:35 pm #40395
    Syam Mohan
    Keymaster
    This reply has been marked as private.
  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Extended Media Library Permissions?’ 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