Hi ! I added this php code in an activated plugin:
remove_role('test'); add_role('test', 'Test', array( 'edit_theme_options' => true, 'moderate_comments' => true, 'manage_categories' => true, 'unfiltered_html' => true, 'edit_others_posts' => true, 'edit_pages' => true, 'edit_others_pages' => true, 'edit_published_pages' => true, 'publish_pages' => true, 'delete_pages' => true, 'delete_others_pages' => true, 'delete_published_pages' => true, 'delete_others_posts' => true, 'delete_private_posts' => true, 'edit_private_posts' => true, 'read_private_posts' => true, 'delete_private_pages' => true, 'edit_private_pages' => true, 'read_private_pages' => true, 'edit_published_posts' => true, 'upload_files' => true, 'publish_posts' => true, 'delete_published_posts' => true, 'edit_posts' => true, 'delete_posts' => true, 'edit_theme_options' => true, 'read' => true ));
But a “TEST” type user have in it’s profile this list of denied powers:
Denied: NextGEN Change options, Denied: NextGEN Change style, Denied: activate_plugins, Denied: add_users, Denied: create_users, Denied: delete_plugins, Denied: delete_themes, Denied: delete_users, Denied: edit_dashboard, Denied: edit_plugins, Denied: edit_theme_options, Denied: edit_themes, Denied: edit_users, Denied: export, Denied: import, Denied: install_themes, Denied: list_users, Denied: manage_links, Denied: manage_options, Denied: promote_users, Denied: remove_users, Denied: switch_themes, Denied: update_core, Denied: update_plugins, Denied: update_themes, Denied: install_plugins, ngg_general, tinymce, add_gallery, ngg_manage_gallery, manage_others, manage_tags, edit_album, change_style, change_options, general
So, also denied “edit_theme_options”.
Can you help me understanding why ?
- The topic ‘add_role bug ? edit_theme_options denied’ is closed to new replies.