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

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

Open
1 task
kkmuffme opened this issue Oct 24, 2023 · 0 comments
Open
1 task

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

kkmuffme opened this issue Oct 24, 2023 · 0 comments

Comments

@kkmuffme
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant