Commit 247a39f9 authored by Kevin Cristiano's avatar Kevin Cristiano 🌎

change civicrm_admin role to match mistyped variant on ssa sites

parent fd56a3df
......@@ -159,14 +159,14 @@ function tc_reset_wp_user_capabilities() {
}
// Add the 'civicrm_admin' role with all capabilities.
if ( ! in_array( 'civicrm_admin', $wp_roles->roles ) ) {
if ( ! in_array( 'civicrm-admin', $wp_roles->roles ) ) {
add_role(
'civicrm_admin',
'civicrm-admin',
__( 'CiviCRM Administrator', 'civicrm' ),
$admin_capabilities
);
}
$roleObj = get_role( 'civicrm_admin' );
$roleObj = get_role( 'civicrm-admin' );
foreach ( $admin_capabilities as $capability_name => $capability_value ) {
$roleObj->add_cap( $capability_name );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment