WordPress.org

Support

Support » Plugins and Hacks » [Plugin Role Scoper] author can’t access all images

[Plugin Role Scoper] author can’t access all images

  • I’m having a problem with the default “author” functionality.

    I’ve already reset Role Scoper to the defaults and then tried it, here’s the situation.

    when I enable the plugin, authors cannot see all the images in the library, only their own

    when I disable the plugin, they can see all the images again

    how can I make it so authors can see all the images in the library, while the plugin is activated?

    thanks!

    http://wordpress.org/extend/plugins/role-scoper/

Viewing 5 replies - 1 through 5 (of 5 total)
  • nevermind.

    I ended up writing some code that enables my contributors to do certain actions and I removed role scoper entirely

    I want this functionality too! Perhaps that code should be posted here?

    If the images are not attached to other posts, you can make them visible by enabling this option:

    Roles > Options > Features tab > Content Maintenance > “Non-editors see other users’ unattached uploads”

    Why would I want that? I want every user with any kind of edit rights to be able to see all uploads, attached or not.

    @katin, here’s the code for it:

    add_action( 'admin_init', 'contrib_can_upload', 10 );
    function contrib_can_upload( ) {
        $role =& get_role('contributor');
        $role->add_cap('upload_files');
    }

    it’s for a site I work on, http://thejockosphere.com

    we needed contributors to be able to do more than they currently could, so @viper007bond helped me with the code and it works great.

    we also added this, so authors can do the same — since authors can’t see “all” uploaded images, only their own.

    add_action ('admin_init','author_can_upload', 10 );
    function author_can_upload() {
            $role =& get_role('author');
            $role->add_cap('upload_files');
    }

    which allows authors to upload files and view all uploaded files, both work great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin Role Scoper] author can’t access all images’ is closed to new replies.