diff --git a/core/um-actions-login.php b/core/um-actions-login.php index d64fd563..aaac4abc 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -157,8 +157,9 @@ $rememberme = ( isset($args['rememberme']) ) ? 1 : 0; - if ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) && strstr( um_user('wp_roles' ), 'administrator' ) ) + if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && ! strstr( um_user('wp_roles' ), 'administrator' ) > -1 ){ wp_die( __('This action has been prevented for security measures.','ultimatemember') ); + } $ultimatemember->user->auto_login( um_user('ID'), $rememberme );