restrict-user-access icon indicating copy to clipboard operation
restrict-user-access copied to clipboard

Redirects happen even when user can edit post

Open JoryHogeveen opened this issue 3 years ago • 0 comments

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:

  1. Create CPT
  2. Create single level: Member
  3. Set restrictions for CPT to be only viewed by members
  4. Make sure the editor role can edit the CPT
  5. Login as editor and try to view a CPT you created.
  6. 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.

JoryHogeveen avatar Aug 19 '22 13:08 JoryHogeveen