User Role Bug
-
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,
Thomashttps://www.ads-software.com/extend/plugins/contact-form-7-to-database-extension/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User Role Bug’ is closed to new replies.