Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




How to hide image media from other authors, and show only to owner

UserPost

11:28 am
September 29, 2011


sim2k

New Member

posts 1

1

Hello All
I own a blog and I need authors/editors to upload pictures and other media but stop them viewing other authors media, pics, etc, just let them view their own media. Can someone please tell me how that can be achieved with this plugin and how to do it?
Thanks in advance for your answer.

10:06 pm
October 4, 2011


Kevin

Admin

posts 2503

2

First, make sure the role definitions have the upload_files capability.

Then enable these options in Roles > Options > Features tab > Media Library:

  • Non-editors see other users' attached uploads
  • Non-editors see other users' unattached uploads

11:10 pm
March 26, 2012


djsteveo

Member

posts 2

3

First off, thank you so much for this very important plugin!

It is coming in very close to fixing the major problem I am having with wordress!

I have a 3.3.1 WP install, and it's set so anyone can register. Everyone who registered is auto-created as an "author" - this gives them the ability to create on account, login and post a post with uploaded picture.

Using role scoper I ahve been able to eliminate MOST of the viewing of other users' uploaded images. It appears right now that all attached images to other posts by other users are hidden, but all (or most?) unattached images from other users are still viewable when a user creates a new post, then click upload/insert then the media library text/tab there.

I tried the above checkboxes both ways - selected and deselected - but logged in as a regular user on different computer, I can still see other users' unattached pictures that were uploaded.

This includes the admin's pictures that were uploaded through the media library for a theme header, and other users' pictures that were uploaded and wordpress auto-saved a draft.

This did also include any images uploaded by non-logged in users through the photosmash picture uploader - that were lated removed from the gallery by admin, but not deleted from the server. I ended up deleted the hundreds of "unattached pics" that were removed from the photosmash gallery - but I still have the issue of other user's and admins uploading pictures that are not attached to posts - still being visible to other users.

I am happy to donate to this much needed plugin - but it is failing slightly at this point.

Any ideas?

11:41 am
March 27, 2012


Kevin

Admin

posts 2503

4

Fixed in the updated development code:

* Fixed : Other user's unattached uploads were always available in Media Library, regardless of RS option setting

The development code is available on wordpress.org/extend/plugins/role-scoper, under "other versions". The fix will also be included (probably soon) in the 1.3.56 release.

7:38 pm
March 28, 2012


djsteveo

Member

posts 2

5

Hey Keniv, thanks so much for continual development of this - I can't even imagine how many bits of wp code must be considered when working on such a broad project as this!

I just sent you a paypal donation, you certainly deserve more though!

I downloaded and installed the development version, and it does seem to hide the unattached media files from other users. With my testing, a regular user is still able to see unattached media files uploaded by the admin - at least the three images that were uploaded via the media uploader for theme header files - but this version does at least fix the privacy issues with other users not having thier files seen - so big thanks!

10:27 am
March 29, 2012


Kevin

Admin

posts 2503

6

Thanks for the donation.

What WP role does your "regular user" have? Have you customized the capabilities in that role, or does the user also have RS roles assigned?

My test Author does not see any of the unattached images uploaded by admin. Where are you seeing them?


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin