Control Permissions for Media Files

The PublishPress Permissions plugin allows you to control permissions for media files on your site.

  • Go to Permissions > Settings.
  • Click the “Editing” tab:

Scroll down to the “Media Library” area. Here you're going to see 5 options you can use to control access to files inside the Media Library:

  • List other users' uploads if attached to a readable post: If this boxed is checked, users can view other people's media files if they are attached a post they can read.
  • List other users' uploads if attached to an editable post: If this boxed is checked, users can view other people's media files if they are attached a post they can edit.
  • Edit other user' uploads if attached to an editable post: If this boxed is checked, users can edit other people's media files if they are attached a post they can edit.
  • Other users' unattached uploads listed by default: If this boxed is checked, users can view other people's media files
  • Users can always edit their own attachments: If this boxed is checked, users can always edit attachments they have uploaded, even if they are later attached to a post which the user cannot edit.

One example with these settings

If you uncheck the box shown below, you will automatically hide other people's files for most users:

This next image shows a test site. I browsed to the Media Library as an Administrator:

I logged out and logged in again as an Author user. This image shows what I saw now:

Please note: there are potential complexities with editing media files. For example, you can deny a user access to a file that someone else has uploaded. But what happens if you also give that user the ability to edit a post where that image is used? Those 5 options give you ways to deal with those scenarios.

Professional publishing plugins for WordPress! Get PublishPress