Skip to content
Permalink
Browse files

Fixed inconsistency in CPF permission handling, since a previous bug fix

  • Loading branch information...
chrisgraham committed Jun 22, 2019
1 parent 6a99abe commit f6155dc39d54981e0d6518904a50d232f03020a0
Showing with 0 additions and 6 deletions.
  1. +0 −6 sources/cns_members_action2.php
@@ -939,12 +939,6 @@ function cns_edit_member($member_id, $email_address, $preview_posts, $dob_day, $
if (array_key_exists($field_id, $custom_fields)) {
if (!$skip_checks) {
if (($field['cf_public_view'] == 0) && ($member_id != get_member()) && (!has_privilege(get_member(), 'view_any_profile_field'))) {
access_denied('I_ERROR');
}
if (($field['cf_owner_view'] == 0) && ($member_id == get_member()) && (!has_privilege(get_member(), 'view_any_profile_field'))) {
access_denied('I_ERROR');
}
if (($field['cf_owner_set'] == 0) && ($member_id == get_member()) && (!has_privilege(get_member(), 'view_any_profile_field'))) {
access_denied('I_ERROR');
}

0 comments on commit f6155dc

Please sign in to comment.
You can’t perform that action at this time.