15/01/2021 at 02:52 #7266
We’re using User Role Editor Version 4.58.2 on the latest version of WordPress.
A user role that has limited permissions, is able to see all pages in spite of us limiting their page access by ID.
What we did
We have created a custom role with limited permissions (screenshot)
We have set which posts the User can Access
When the issue appeared
Seemed to occur after updating to the latest release
What we’ve tried
We tried disabling all other plugins and the issue persists.
Tested on an alternate website, the issue persists.
Triedd changing themes, just because, and the issue persisted.15/01/2021 at 03:03 #7271
Can not repeat this at the latest test. Check if user has another role(s) granted, which has edit restrictions also and may change the result which you wish.15/01/2021 at 03:06 #7272
Clarify also what do you mean under “user can ONLY view certain page IDs”. I suppose – view allowed pages at the list of pages available for editing at the wp-admin, right?15/01/2021 at 06:41 #7274
Than you. The user in question has ‘view allowed’ to specific post IDs. My assumption is that the user can only view/manage the posts/pages that match the IDs that are input.
For the Role ‘Page Editor’ it should be allowed to create a page but only see pages that were created by the user or specific page IDs that are allowed in the WP Admin in their user profile. Video Explainer.
We’re using User Switching to troubleshoot this issue. We notice when we. switch to a user with Role Page editor, that they can see and edit any page (not good). We go into edit a page, and then exit, and we see only the pages the user is allowed to access.15/01/2021 at 07:00 #7275
Just to add to this, I created a new user with the appropriate role. I logged in as that user (not with user switching). At first I can see all pages. I edit a page, try to save and get an error that says I can’t edit that page, which is good. Then I go back to pages, and then I only see the one post I should see.15/01/2021 at 07:04 #7276
Do you use any caching plugin? If Yes, switch off caching for the restricted role.15/01/2021 at 07:07 #7277
Another question – if you repeat the test will it show the same result – all pages 1st, then the list according to restrictions?20/01/2021 at 20:25 #7287
Yes, if I repeat the test the same thing happens, even after clearing cache.
1. The user will first see ALL pages.
2. If they click edit on any page and then go back to pages, they will only see the pages they have access to.21/01/2021 at 02:23 #7288
Send URL and administrator credentials to support [at-sign] role-editor.com, if it’s applicable. I will investigate your case. If you can setup a development copy it would be better.28/01/2021 at 15:03 #7323
I reproduced your issue at my own test site. I will inform you when I find a reason and develop a fix.
Thank you for the report about this problem.28/01/2021 at 19:49 #7324
You are awesome, Vladimir. Thank you.08/02/2021 at 05:46 #7341
Just checking to see if this ever got resolved. =)08/02/2021 at 08:26 #7342Jean-LaurentParticipant
@Vladimir, +1 would really appreciate if you could fix this one ASAP.
Kind regards08/02/2021 at 10:29 #7343
- You must be logged in to reply to this topic.