Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author GabSoftware

    (@gabsoftware)

    Currently, you will need to edit the file ipfilter.php and change the line 95:

    if( current_user_can( 'manage_options' ) )

    By:

    if( current_user_can( 'publish_posts' ) )

    And then Authors should be able to modify the list.

    Thread Starter devpaq

    (@devpaq)

    Thanks, Gab
    I modified that line as well as the few other times it checks for the user type. Now it lets me see the page but if I try to save the changes (which goes to options.php) I get the “cheatin’ uh?” message.

    Plugin Author GabSoftware

    (@gabsoftware)

    Which lines do you modified exactly?

    Thread Starter devpaq

    (@devpaq)

    I modified the one you mentioned which is around line 89

    Line 184
    if( current_user_can( 'manage_options' ) )

    Line 279 under
    $ipfilter_options_page_handle = add_submenu_page(

    Line 304
    if ( ! current_user_can( 'manage_options' ) )

    All of them I replaced “manage_options” with “publish_posts”

    I tried searching the forums, but there seems the “cheatin” message is so general.

    Plugin Author GabSoftware

    (@gabsoftware)

    I think the problem is that publishers can’t access the Settings section, only admins can.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: IP Filter] Allow access tp authors’ is closed to new replies.