- Timestamp:
- 12/17/2021 07:34:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php
r13115 r13192 284 284 } 285 285 286 if ( ! bp_is_group_create() && ! bp_groups_user_can_send_invites( bp_get_current_group_id(), bp_loggedin_user_id() ) ) { 287 $invite_status = bp_group_get_invite_status( bp_get_current_group_id() ); 288 if ( 'admins' === $invite_status ) { 289 $message = __( 'Inviting members to join this group is restricted to Group Administrators.', 'buddypress' ); 290 } else { 291 $message = __( 'Inviting members to join this group is restricted to Group Moderators and Administrators.', 'buddypress' ); 292 } 293 294 wp_send_json_error( 295 array( 296 'feedback' => $message, 297 'type' => 'error', 298 ) 299 ); 300 } 301 286 302 $request = bp_parse_args( 287 303 $_POST,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)