Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nico

    (@nico23)

    What capabilities do your ‘Authors’ have?

    because in the plugin the button is added with

    if ( current_user_can( 'edit_posts' ) && current_user_can( 'edit_pages' ) ) {

    This means of your Author are able to edit posts or pages they should use the short-code creation button. I am not so deep into user roles at this point, but maybe your authors can only create posts not edit them or something. Maybe someone can tell me what capability might be better for this?

    Hello.
    I’ve got the same issue.
    Authors can only edit the posts they have created, no pages, no other posts. Its the Role WordPress Codex.

    Is It possible to resolve this issue?

    Plugin Author Nico

    (@nico23)

    The thing is that its a AND and not a OR like I wrongly said above.

    I will change it to OR next version so authors who can edit posts but not pages (i guess this is the it for most) have the btn.

    Its the Role WordPress Codex.

    ?? What role?

    As for the new thread, while this might make sense for some cases in this case I think its fine because it’s the exact same problem.

    Plugin Author Nico

    (@nico23)

    OK that should fix this:

    current_user_can( ‘publish_posts’ )
    || current_user_can( ‘edit_posts’ )
    || current_user_can( ‘edit_private_posts’ )
    || current_user_can( ‘edit_published_posts’ )
    || current_user_can( ‘publish_pages’ )
    || current_user_can( ‘edit_pages’ )
    || current_user_can( ‘edit_private_pages’ )
    || current_user_can( ‘edit_published_pages’ )
    || current_user_can( ‘edit_other_pages’ )

    2.7.2 is out with this, let me know or all your authors or who ever writes stuff on your site sees the button now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plug-in not accessible to anyone but admins’ is closed to new replies.