• Resolved fbgraphiklab

    (@fbgraphiklab)


    Hello,
    I would like to know if there’s a way to allow users with the “Editor” role to add galleries with FooGallery.
    I’ve checked the options but found nothing.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fbgraphiklab

    (@fbgraphiklab)

    note:
    When i’m logged in with Editor account and i click on the “Add Gallery” link i get the following message :
    ” Cheatin’ uh? Sorry, you are not allowed to access this site. ”

    ( the button link is …./wp-admin/post-new.php?post_type=foogallery )

    Plugin Author bradvin

    (@bradvin)

    hi there

    I tested this and I was able to add a new gallery when logged in as another user with the editor role. Are you using a plugin for role management? What is the specific capability of the user you require?

    There is also a filter which you can override to change the role for the menu items added by FooGallery. Some code to override it:

    
    function foogallery_gallery_editor($role) {
        $role = 'edit_posts';
        return $role;
    }
    
    add_filter( 'foogallery_admin_menu_capability', 'foogallery_gallery_editor', 10, 1 );
    
    Thread Starter fbgraphiklab

    (@fbgraphiklab)

    Thanks bradvin for your answer,

    I’ve retried with a brand new install of WordPress and i was able to add a gallery too.
    So i tried to desactivate-reactivate every plugin to see if there’s any change.
    And i finally found that Adminimize was responsible for the error, or more precisely my Adminimize config : i hid the sub-menu “Add Gallery” but not the main menu “Foogallery”, and this was what gave me the error when trying to access this section.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow Editor Role to Add Gallery’ is closed to new replies.