• rajaito

    (@rajaito)


    Role Scoper 1.3.29 seems to conflict with my premium theme’s built-in custom post types Projects/News. (My theme is Prestige 1.4)

    I really do not need the plugin, except it is the only one I have found that enables the feature for authors to see only their own media in the media library. Our site has about 40 different authors. I already know the media library will be a nightmare if I cannot figure out another way to limit a users access only to the files they upload.

    Obviously possible if Role Scoper can do it by default. But in my situation it does not work with my theme. – Several noticeable issues.

    So to clearly state my question:

    How does one limit an author to only see his/her own media uploads in the library?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rajaito

    (@rajaito)

    This original topic still isn’t resolved.

    However, I may have found a get your hands a little dirty way around it, which does not involve Role Scoper. Of course if anybody knows how to allow authors to still access the media library and posts section but only see their own items, by all means, please share. I think there are many people who would appreciate it.

    In the meantime, this is not an ideal fix, but it at least gets me a little closer then I was.

    FIRST:

    After lots and lots of searching, I found and installed a simple, little known plugin called: Manage Your Posts Only WordPress Plugin

    From the plugin author’s website:

    I’ve created a tiny little WordPress plugin that makes it so that users and editors can only see posts from the manage tab that they have written themselves. By using this plugin, the only users that can see all posts from the manage tab are Admins.

    === Manage Your Posts Only ===
    Contributors: mincus
    Tags: admin, users, posts
    Requires at least: 2.5
    Tested up to: 2.5.1

    (I know it says up to “2.5.1”, but I just installed it on 3.1.1 and it seems to be working)

    SECOND:

    This is the part that is still a little less then ideal. Role Scoper does what I want almost perfectly. But since it still conflicts with the theme I have committed to, I am left with no other choice then to comprimise.

    I found a hack that removes the media library tab from the media manager popup. Essentially, all authors can upload photos, and edit them from the post window, but they are just not offered the chance to see what is actually stored in the media library.

    I inserted the code below into my theme’s functions.php file near the bottom of the page, just above the last ?>

    //Remove Media Library Tab
        function remove_medialibrary_tab($tabs) {
        	if ( !current_user_can( 'administrator' ) ) {
        		unset($tabs['library']);
        		return $tabs;
        	}
        	else
        	{
        		return $tabs;
            }
        }
        add_filter('media_upload_tabs','remove_medialibrary_tab');

    (I was also able to easily modify both of the above steps to allow for my editors to still have editing access to all posts and the media library.)

    If anybody can think of a better solution for this, please tell me. Otherwise I hope this solution will help somebody else in a similar situation as me.

    Thank you very much for posting this. Great plugin as well as hack.

    Did you find a newer solution for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I only need one feature from role-scoper – Limit users to their own media files’ is closed to new replies.