diff --git a/pages/alo-easymail-admin-options.php b/pages/alo-easymail-admin-options.php index 979fa2b..fa5637b 100644 --- a/pages/alo-easymail-admin-options.php +++ b/pages/alo-easymail-admin-options.php @@ -219,14 +219,14 @@ foreach ( $roles as $key ) { if ( $key == 'administrator' ) continue; // skip admin - + if ( $role_options && in_array( $key, $role_options ) ) { - foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap ); + foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap ); } else { - foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap ); + foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap ); } } diff --git a/pages/alo-easymail-admin-subscribers.php b/pages/alo-easymail-admin-subscribers.php index ca1583e..e7394af 100644 --- a/pages/alo-easymail-admin-subscribers.php +++ b/pages/alo-easymail-admin-subscribers.php @@ -14,6 +14,11 @@