WordPress.org

Ready to get started?Download WordPress

Forums

Post Snippets
[resolved] Editor's role (6 posts)

  1. criography
    Member
    Posted 2 years ago #

    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?

    http://wordpress.org/extend/plugins/post-snippets/

  2. jonmike
    Member
    Posted 1 year ago #

    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!

  3. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    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

  4. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  5. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. criography
    Member
    Posted 1 year ago #

    Nice one! Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic