Support » Plugin: Add Widgets to Page » [Plugin: Add Widgets to Page] Regular subscribers able to delete widgets

  • bigmalletman

    (@bigmalletman)


    “add widgets to page” version 1.3.2
    WordPress version 3.2.1

    My regular Subscriber role was able to access the Tools > “Widgets to Pages” area and even delete widget settings.

    “Widgets to Pages” is the only page in Dashboard the Subscriber role has access to (other than Profile options).

    How can I make it so only Administrators have access to this page? Or is this a bug?

    Thanks in advance.

    http://wordpress.org/extend/plugins/add-widgets-to-page/

Viewing 1 replies (of 1 total)
  • bigmalletman

    (@bigmalletman)

    Had to edit the plugin.

    In add-widgets-to-page/addw2p.php

    function addw2p_menu() {
    	if ( current_user_can('administrator')) {
    		if ( function_exists('add_management_page') ) {
    			add_management_page("addw2p", "Widgets to Pages", 'read', __FILE__, 'addw2p_menu_options');
    		}
    	}
    
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Add Widgets to Page] Regular subscribers able to delete widgets’ is closed to new replies.