• Resolved criography

    (@criography)


    Hi,

    First of all it’s a great plugin, so massive thanks for it.

    My only comment is the way it restricts editting snippets. While you limit this feature to administrative users only it should be also allowed for Editors.

    I can see you’re using if ( current_user_can('manage_options') ), which is all fine but by definition Editors should be capable of editting others’ content. Snippets are not options.

    Do you think it could be corrected, or perhaps customisable somewhere?

    https://www.ads-software.com/extend/plugins/post-snippets/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    As criography mentioned, individual role control for shortcodes would make me have to use your plugin!

    BTW Thanks! I love the plugin, but I have to have role control!
    Cheers!

    Hi,

    Sorry for super late reply. But you are right, and it makes sense. I’ve added it to the things to change for the soon upcoming 2.1 update.
    https://github.com/artstorm/post-snippets/issues/12

    Cheers,
    Johan

    Getting into the code, I started thinking. Currently editors gets a non editable view of the snippets. Allowing editors to edit snippets, will allow them to enter and execute PHP code. That would probably not be desired.

    I will copy this note to my issue list at GitHub, and give it some more thought. What do you think?

    A constant can be set in the coming update that allows users with edit_posts capability access to the snippets admin.

    Thread Starter criography

    (@criography)

    Nice one! Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Post Snippets] Editor's role’ is closed to new replies.