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

Capability check for admin notices #5

Closed
thomasgriffin opened this issue Apr 9, 2012 · 1 comment
Closed

Capability check for admin notices #5

thomasgriffin opened this issue Apr 9, 2012 · 1 comment

Comments

@thomasgriffin
Copy link
Contributor

You don't have any capability checks for your admin notices, which means any user that can access your post type can see your messages. You should limit these to only those users that have the ability to act upon those messages, or you should create different messages for those users that cannot act upon the messages. I would consider using current_user_can( 'manage_options' ) seeing how all of your submenu pages require that level to access them.

@pippinsplugins
Copy link
Contributor

I'm adding this in, but I'm also going to add in (at some point) the option to change the access level required to access the downloads menu.

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

No branches or pull requests

2 participants