Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirects happen even when user can edit post #41

Open
JoryHogeveen opened this issue Aug 19, 2022 · 0 comments
Open

Redirects happen even when user can edit post #41

JoryHogeveen opened this issue Aug 19, 2022 · 0 comments

Comments

@JoryHogeveen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant