Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/24/2012 10:34:38 PM (13 years ago)
Author:
boonebgorges
Message:

Allows users to modify profile field visibility during registration. Fixes #4044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-caps.php

    r5799 r5837  
    2929    switch ( $cap ) {
    3030        case 'bp_xprofile_change_field_visibility' :
    31             $caps = array( 'read' );
     31            $caps = array( 'exist' ); // Must allow for logged-out users during registration
    3232
    3333            // You may pass args manually: $field_id, $profile_user_id
     
    4848
    4949            // Friends don't let friends edit each other's visibility
    50             // @todo - This would be a proper map if we used CPTs?
    5150            if ( $profile_user_id != bp_displayed_user_id() && !bp_current_user_can( 'bp_moderate' ) ) {
    5251                $caps[] = 'do_not_allow';
Note: See TracChangeset for help on using the changeset viewer.