WordPress.org

Ready to get started?Download WordPress

Forums

Testimonials by Aihrus
[resolved] [Plugin: Testimonials Widget] Testimonial settings reachable by contributors/authors (4 posts)

  1. evo252
    Member
    Posted 2 years ago #

    Hello,

    My contributors and authors have access to the testimonial settings. They can edit, delete or add some testimonials. It would be better to restrict the settings page just to editors/admin, isn't it ?

    How can I make that ?

    Thanks.

    http://wordpress.org/extend/plugins/testimonials-widget/

  2. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    evo252,

    Good question and one that I need to research and figure out. I'll let you know soon.

    Michael

  3. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    It seems that most plugins don't have permissions built-in, but run against WordPress's default Roles and Capabilities per http://codex.wordpress.org/Roles_and_Capabilities.

    Have you tried http://wordpress.org/extend/plugins/role-scoper/ to modify the restrictions to your needs?

  4. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    You can replace "edit_posts" of testimonials-widget.php at line 35 $testimonialswidget_admin_userlevel = 'edit_posts'; with one of the following "level_N" options to change the role required to access the testimonials management page.

    Administrator: level_10
    Editor: level_7
    Author: level_4
    Contributor: level_1
    Subscriber: level_0

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic