Support » Plugin: Role Scoper » [Plugin: Role Scoper] Restricted pages appear in the menu for all users, even if not logged in
6 years, 4 months ago
I’m testing Role Scoper for a client. I’ve set up two users (Company A, Company B) and three pages: one user is assigned to two pages, the other user is assigned to one page. Under the ‘readers’ tab on the editor page I have selected:
Restrict for Page and Restrict for Subpage (are both needed, or just ‘Restrict for Subpage?’)
User is Company A, can access page and subpages
I created two menus to test – one is a new WP 3.0 navigation menu widget, the other is the regular Pages widget.
All three pages show on the WP 3.0 widget at all times – whether I’m logged in as admin or a user or not logged in at all. I only want a page to show in a menu/page list when a logged-in user has permission to read it – no other time.
In the RS Options I’ve ticked the box beside ‘Include Private Pages in listing if user can read them.’ I assumed this meant that private pages would not be shown unless the user with permission was logged in, but it’s not working. I tried setting the pages to Publish Privately, that made no difference in visibility.
In the other menu I made, just using the Pages widget, no pages are shown ever, no matter who’s logged in or out. I’ve selected my 3 pages but they’re not visible.
I don’t think I’m understanding how this works – how do I set up RS so that in a menu, only a logged-in user with permission to read a page, can see a page link? Is there a specific menu widget or page listing widget I’m supposed to use, or a way to hardcode it in the template’s sidebar?