WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
[resolved] User Role Bug (2 posts)

  1. thomaswm
    Member
    Posted 1 year ago #

    I recently updated to version 2.4.4 of Contact Form DB. Since then, users with user role "Editor" are not able to access the form data stored in the database although I have set the settings "Can see data" and even "Can see and edit data" to "Editor".

    I believe this may be caused by the following code snippet from the function createAdminMenu() in CFDB7Plugin.php:

    //create new top-level menu
            add_menu_page($displayName,
                            __('Contact Form DB', 'contact-form-7-to-database-extension'),
                          'administrator', //$roleAllowed,
                          $menuSlug, //$this->getDBPageSlug(),
                          array(&$this, 'whatsInTheDBPage'));

    You might want to change this to

    //create new top-level menu
            add_menu_page($displayName,
                            __('Contact Form DB', 'contact-form-7-to-database-extension'),
                          roleToCapability($roleAllowed),
                          $menuSlug, //$this->getDBPageSlug(),
                          array(&$this, 'whatsInTheDBPage'));

    Greetings,
    Thomas

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I'll fix that and release an update. Thanks for figuring that out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic