Skip to content

Remove capabilities e.g. 'read' from WordPress.WP.Capabilities #2399

Closed as not planned

Description

Is your feature request related to a problem?

Checking 'read' capability is technically correct, however practically this doesn't make particular sense, since this is a permission all users have.
I'd like to be able to remove this capability from the rule via config, as most likely this current_user_can check is not safe enough.

Describe the solution you'd like

Config to remove default WP capabilities or remove it by default

Additional context (optional)

  • I intend to create a pull request to implement this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions