Missing dashboard menu – missing super-admin capabilities
-
Hi all,
I’ve stumbled upon a bug that prevent super-administrator of website (multi o single sites) to not see the Nelio AB Testing plugin menu on the dashboard. It seems to be related to the missing capabilities on the ‘super-admin’ role.
Ref: /wp-content/plugins/nelio-ab-testing/includes/utils/class-nelio-ab-testing-capability-manager.php:60 – “add_capabilities” only adds capabilities to ‘administrator’ and ‘editor’ roles/**
* Adds custom Nelio A/B Testing’s capabilities from admin admin and editor roles.
*
* @since 6.0.1
*/
public function add_capabilities() {
$roles = array( 'administrator', 'editor' );
foreach ( $roles as $role_name ) {
$role = get_role( $role_name );
if ( $role ) {
$caps = $this->get_role_capabilities( $role_name );
foreach ( $caps as $cap ) {
$role->add_cap( $cap );
}//end foreach
}//end if
}//end foreach
}//end add_capabilities()I needed to add capabilities with an external plugin.
Cheers,
Fabio
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Missing dashboard menu – missing super-admin capabilities’ is closed to new replies.