- code review;

This commit is contained in:
nikitasinelnikov
2021-03-03 17:42:25 +02:00
parent b913638ba8
commit 04933e576d
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ function um_action_request_process() {
break;
case 'um_switch_user':
if ( ! current_user_can( 'delete_users' ) ) {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
UM()->user()->auto_login( $uid );