WordPress.org

Ready to get started?Download WordPress

Forums

Groups
does it work with media files (3 posts)

  1. alaskaash
    Member
    Posted 10 months 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?

    http://wordpress.org/plugins/groups/

  2. jkhongusc
    Member
    Posted 10 months 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 Szatkowski
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic