Describe the bug
When a single leven is created for member access which sets restrictions for a CPT a website maintainer still gets redirected.
Such a website maintainer doesn't get any level (since it's a maintainer, not a member) but also hasn't admin access.
This maintainer can edit a CPT but cannot view it because RUA redirects the user because of restrictions.
To Reproduce
Steps to reproduce the behavior:
- Create CPT
- Create single level: Member
- Set restrictions for CPT to be only viewed by members
- Make sure the
editor role can edit the CPT
- Login as editor and try to view a CPT you created.
- Computer says no :(
Expected behavior
I would expect access levels to be ignored when a logged in user has certain capabilities, like in this case edit the CPT.
Describe the bug
When a single leven is created for member access which sets restrictions for a CPT a website maintainer still gets redirected.
Such a website maintainer doesn't get any level (since it's a maintainer, not a member) but also hasn't admin access.
This maintainer can edit a CPT but cannot view it because RUA redirects the user because of restrictions.
To Reproduce
Steps to reproduce the behavior:
editorrole can edit the CPTExpected behavior
I would expect access levels to be ignored when a logged in user has certain capabilities, like in this case edit the CPT.