mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix admin access restriction
This commit is contained in:
@@ -158,9 +158,8 @@
|
||||
extract( $args );
|
||||
|
||||
$rememberme = ( isset($args['rememberme']) ) ? 1 : 0;
|
||||
|
||||
|
||||
if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) >= 0 ){
|
||||
|
||||
if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) !== FALSE ){
|
||||
wp_die( __('This action has been prevented for security measures.','ultimatemember') );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user