WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin Role Scoper] author can't access all images (6 posts)

  1. Jonathan Dingman
    Member
    Posted 4 years ago #

    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/

  2. Jonathan Dingman
    Member
    Posted 4 years ago #

    nevermind.

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

  3. katinkaspirituality
    Member
    Posted 4 years ago #

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

  4. kevinB
    Member
    Posted 4 years ago #

    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"

  5. katinkaspirituality
    Member
    Posted 4 years ago #

    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.

  6. Jonathan Dingman
    Member
    Posted 4 years ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Topic