Changeset 11317
- Timestamp:
- 12/22/2016 08:17:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/src/bp-xprofile/bp-xprofile-caps.php
r11302 r11317 79 79 function bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users( $user_can, $user_id, $capability ) { 80 80 if ( 'bp_xprofile_change_field_visibility' === $capability && 0 === $user_id ) { 81 $field_id = bp_get_the_profile_field_id(); 82 if ( $field_id && $field = xprofile_get_field( $field_id ) ) { 83 $user_can = 'allowed' === $field->allow_custom_visibility; 84 } 81 $user_can = true; 85 82 } 86 83
Note: See TracChangeset
for help on using the changeset viewer.