• Resolved EmiliaP

    (@emiliap)


    In version 3.0.1 restrictions by role work OK but not those by user:
    – in Roles I leave everything unchecked.
    – in Categories I enabled two categories for a User (role: author), but once logged in as that user I am able to add an article in all categories
    – there are NO active or installed plugins that interfere with permission or authorisation

    Is this a bug or am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    You aren’t missing anything, it’s my mistake.

    To fix this, replace lines 416-417 with the following and you should be good to go.

    /* Get the user login name/ID */
    	if ( function_exists( 'get_users' ) )
    		$user_login = $user->user_login;
    	elseif ( function_exists( 'get_users_of_blog' ) )
    		$user_login = $user->ID;

    If you aren’t comfortable with messing around with code, I will get an update out as soon as I can. Thanks for informing me of the bug!

    Thread Starter EmiliaP

    (@emiliap)

    Thanks a lot for the swiftness of your support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Restrict Categories] Possible restriction by user bug’ is closed to new replies.