mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- changed field's privacy type label;
This commit is contained in:
@@ -2280,7 +2280,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
||||
$privacy_options = array(
|
||||
'1' => __( 'Everyone', 'ultimate-member' ),
|
||||
'2' => __( 'Members', 'ultimate-member' ),
|
||||
'-1' => __( 'Only visible to profile owner and admins', 'ultimate-member' ),
|
||||
'-1' => __( 'Only visible to profile owner and users who can edit other member accounts', 'ultimate-member' ),
|
||||
'-3' => __( 'Only visible to profile owner and specific roles', 'ultimate-member' ),
|
||||
'-2' => __( 'Only specific member roles', 'ultimate-member' ),
|
||||
);
|
||||
|
||||
@@ -1531,7 +1531,7 @@ function um_can_view_field( $data ) {
|
||||
$can_view = false;
|
||||
}
|
||||
break;
|
||||
case '-1': // Only visible to profile owner and admins
|
||||
case '-1': // Only visible to profile owner and users who can edit other member accounts
|
||||
if ( ! is_user_logged_in() ) {
|
||||
$can_view = false;
|
||||
} elseif ( ! um_is_user_himself() && ! UM()->roles()->um_user_can( 'can_edit_everyone' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user