- added WP Users restrictions by UM Roles settings;

- added new extensions to the list;
This commit is contained in:
nikitasinelnikov
2020-08-31 18:05:54 +03:00
parent 6c4f0876d0
commit c112f02743
8 changed files with 145 additions and 46 deletions
@@ -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;