WordPress.org

Ready to get started?Download WordPress

Forums

SB Child List
Feature Request: Stricter Capability Check or User Choice (1 post)

  1. Bozz
    Member
    Posted 5 months ago #

    Great plugin! I noticed that Editors or anyone who can publish_posts is given access to the settings page. Generally plugins check for manage_options as the capability before exposing settings pages to the user.

    At any rate, my request is to allow the WP admin to set which capability or user role should have access to the settings page.

    As a quick and easy fix, you could set by default manage_options on line 552 as follows:

    function sb_cl_init_admin_page() {
    	global $sb_cl_file;
    	add_options_page('SB Child List Options', 'SB Child List', 'manage_options', $sb_cl_file, 'sb_cl_admin_page');
    }

    Thanks again for a solid plugin and for your consideration of this request.

    http://wordpress.org/plugins/sb-child-list/

Reply

You must log in to post.

About this Plugin

About this Topic