Changeset 12945 for trunk/src/bp-members/bp-members-filters.php
- Timestamp:
- 05/10/2021 03:07:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-filters.php
r12930 r12945 150 150 151 151 case 'bp_members_send_invitation': 152 if ( bp_get_members_invitations_allowed() ) {152 if ( is_user_logged_in() && bp_get_members_invitations_allowed() ) { 153 153 $retval = true; 154 154 } … … 167 167 } 168 168 } 169 break; 170 171 case 'bp_members_invitations_view_screens': 172 $retval = bp_get_members_invitations_allowed() && ( bp_user_can( $user_id, 'bp_members_send_invitation' ) || bp_members_invitations_user_has_sent_invites( $user_id ) ); 173 break; 174 175 case 'bp_members_invitations_view_send_screen': 176 $retval = is_user_logged_in() && bp_get_members_invitations_allowed(); 169 177 break; 170 178 }
Note: See TracChangeset
for help on using the changeset viewer.