mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added WP Users restrictions by UM Roles settings;
- added new extensions to the list;
This commit is contained in:
@@ -1066,6 +1066,14 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
|
||||
|
||||
case 'um_admin_review_registration':
|
||||
//$user_id = $arg1;
|
||||
|
||||
if ( ! current_user_can( 'administrator' ) ) {
|
||||
if ( ! um_can_view_profile( $arg1 ) ) {
|
||||
$output = '';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
um_fetch_user( $arg1 );
|
||||
|
||||
UM()->user()->preview = true;
|
||||
|
||||
Reference in New Issue
Block a user