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 hard-coded "add_user" capability in ComponentAbstract #5

Open
griffbrad opened this issue Mar 20, 2013 · 0 comments
Open

Remove hard-coded "add_user" capability in ComponentAbstract #5

griffbrad opened this issue Mar 20, 2013 · 0 comments

Comments

@griffbrad
Copy link
Contributor

When calling add_object_page() and add_submenu_page() in \Dewdrop\Admin\ComponentAbstract, we currently hard-code the "add_users" capability. This should be replaced by a class property that can be manipulated by Component classes in their init() methods.

Submenu pages should be allowed to use capabilities that differ from the component's global capability value, but they should default to using that global value.

See http://codex.wordpress.org/Roles_and_Capabilities for more information about capabilities in WordPress.

Once you have this in place, talk to Brad about how best to test this functionality.

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

1 participant