Title: Wrong capability for sub-menu dashboard !!
Last modified: August 22, 2016

---

# Wrong capability for sub-menu dashboard !!

 *  Resolved [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wrong-capability-for-sub-menu-dashboard/)
 * Hello actually the author can view the sub-menu under dashboard can you add a
   setting to change the capability for the visibility of the page history please?
   Like that we can choose what role can access to the history page Tx in advance!
 * [https://wordpress.org/plugins/simple-history/](https://wordpress.org/plugins/simple-history/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wrong-capability-for-sub-menu-dashboard/#post-5172931)
 * I can’t reproduce that here. If I am a user with author role then I get the message“
   You do not have sufficient permissions to access this page.” if I try to view
   the Simple History page, and it is not visible in the menu.
 * If you still have this problem please provide some more info, like screenshots
   + make sure you don’t have any other plugins installed that possible could interfere
   with roles and/or capabilities.
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wrong-capability-for-sub-menu-dashboard/#post-5172932)
 * This one is for me .. sorry it’s editor role .. :p
 * it will be a good thing to add in setting something like choose which role can
   view the menu (checkbox)
 *     ```
       $current_user = new WP_User(wp_get_current_user()->id);
       $user_roles = $current_user->roles;
       foreach($user_roles as $role) {
       	if (($role == 'subscriber') OR ($role == 'author') OR ..... ) {
   
       The plugin code
   
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong capability for sub-menu dashboard !!’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/wrong-capability-for-sub-menu-dashboard/#post-5172932)
 * Status: resolved