[wp-hackers] Roles and capabilities

andré renaut andre.renaut at gmail.com
Tue Dec 9 06:49:51 GMT 2008

@ Eric Marden and to all

Role and capabilities are working great in my plugin, so the issue is not

The issue is introduced by the new 2.7 menu organisation.

In a submenu associated with a WP existing main menu.
    * The access to the submenu is ok for a specific role
    * The access of the main menu file (*.php) is ko for that role

The Main menu and its submenu is displayed.

Clicking on the submenu retrieves the following message

You do not have sufficient permissions to access this page

set by the main menu file (*.php) ... because the test 'current_user_can' is
made BEFORE the call to the plugin page ....

I believe this is a bug !!!

More information about the wp-hackers mailing list