Fix admin front-end restriction access

This commit is contained in:
champsupertramp
2016-06-06 22:24:54 +08:00
parent 42d2a85995
commit 5cc6e07813
+2 -1
View File
@@ -159,7 +159,8 @@
$rememberme = ( isset($args['rememberme']) ) ? 1 : 0;
if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && ! strstr( um_user('wp_roles' ), 'administrator' ) > -1 ){
if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) >= 0 ){
wp_die( __('This action has been prevented for security measures.','ultimatemember') );
}