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

Backend menu IDs with upper-case letters fail to restrict #105

Closed
aamplugin opened this issue Apr 28, 2020 · 0 comments
Closed

Backend menu IDs with upper-case letters fail to restrict #105

aamplugin opened this issue Apr 28, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@aamplugin
Copy link
Owner

The unspoken WP core rule is that all backend menu item IDs are all lower-case slugs. However, there are plugins that do no follow this "standard". For example WP-Optimize - Clean, Compress, Cache.

Screen Shot 2020-04-28 at 4 18 19 PM

This way, there is no way to define an access policy that targets this backend menu resource. So policy like this will not work:

{
    "Statement": [
        {
            "Effect": "deny",
            "Resource": [
                "BackendMenu:menu-WP-Optimize",
                "BackendMenu:wp-optimize"
            ]
        }
    ]
}
@aamplugin aamplugin self-assigned this Apr 28, 2020
@aamplugin aamplugin added the bug label Apr 28, 2020
@aamplugin aamplugin added this to the 6.5.0 - AAM milestone Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant