Changeset 9982 for trunk/src/bp-groups/bp-groups-actions.php
- Timestamp:
- 06/30/2015 06:22:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-actions.php
r9906 r9982 2 2 3 3 /** 4 * BuddyPress Groups Actions 4 * BuddyPress Groups Actions. 5 5 * 6 6 * Action functions are exactly the same as screen functions, however they do … … 63 63 * @since BuddyPress (2.1.0) 64 64 * 65 * @param bool $user_has_access True if the user has access to the 66 * content, otherwise false. 67 * @param array $no_access_args Arguments to be passed to 68 * bp_core_no_access() in case of no access. Note that this 69 * value is passed by reference, so it can be modified by the 70 * filter callback. 65 * @param bool $user_has_access True if the user has access to the 66 * content, otherwise false. 67 * @param array $no_access_args Arguments to be passed to bp_core_no_access() in case 68 * of no access. Note that this value is passed by reference, 69 * so it can be modified by the filter callback. 71 70 */ 72 71 $user_has_access = apply_filters_ref_array( 'bp_group_user_has_access', array( $user_has_access, &$no_access_args ) ); 73 72 74 // If user has access, we return rather than redirect 73 // If user has access, we return rather than redirect. 75 74 if ( $user_has_access ) { 76 75 return; … … 79 78 // Hidden groups should return a 404 for non-members. 80 79 // Unset the current group so that you're not redirected 81 // to the default group tab 80 // to the default group tab. 82 81 if ( 'hidden' == $current_group->status ) { 83 82 buddypress()->groups->current_group = 0;
Note: See TracChangeset
for help on using the changeset viewer.