does it work with media files (3 posts)

  1. alaskaash
    Posted 2 years ago #

    I am trying to restrict the access to media attachments to post. When I upload a media file (image, doc file or pdf file) I can set the access restriction with capabilities of the groups. It doesnt really enforce those restriction. The media files are still accessible when user (not logged in) clicks the link or when direct URL is used in the address bar.
    For custom posts (e.g woocommerce products) it work fine, but not with the media attachments.

    Any solution for that?


  2. jkhongusc
    Posted 2 years ago #

    Worked for me. I downloaded a picture and applied a capability (not the default) with read access. I then tested the access with users who had and did not have the capability. Worked fine, the user without access got a 404 error. FYI the media url format was: http://www.domain.com/?attachment_id=10

  3. M
    Posted 2 years ago #

    it would be better if the user has no access to the attachment, then there'd be no link in the list...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Groups
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic