Skip to content

Redirects happen even when user can edit post #41

@JoryHogeveen

Description

@JoryHogeveen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions