Changeset 5837 for trunk/bp-xprofile/bp-xprofile-caps.php
- Timestamp:
- 02/24/2012 10:34:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-caps.php
r5799 r5837 29 29 switch ( $cap ) { 30 30 case 'bp_xprofile_change_field_visibility' : 31 $caps = array( ' read' );31 $caps = array( 'exist' ); // Must allow for logged-out users during registration 32 32 33 33 // You may pass args manually: $field_id, $profile_user_id … … 48 48 49 49 // Friends don't let friends edit each other's visibility 50 // @todo - This would be a proper map if we used CPTs?51 50 if ( $profile_user_id != bp_displayed_user_id() && !bp_current_user_can( 'bp_moderate' ) ) { 52 51 $caps[] = 'do_not_allow';
Note: See TracChangeset
for help on using the changeset viewer.