Changeset 13541 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/routes/user/host-event.php
- Timestamp:
- 04/16/2024 12:41:37 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/routes/user/host-event.php
r13529 r13541 51 51 52 52 $affected_attendee = $this->attendee_repository->get_attendee( $event_id, $user_id ); 53 if ( $affected_attendee instanceof Attendee && $affected_attendee->is_host() && ( 1 === count( $this->attendee_repository->get_hosts( $event_id ) ) ) ) {54 $this->die_with_error( esc_html__( 'The event needs a host. Add a new host before stopping to attend the event.', 'gp-translation-events' ), 403 );55 }56 53 // The user is attending to the event, so if I don't find the attendee, I won't create it. 57 54 if ( $affected_attendee instanceof Attendee ) {
Note: See TracChangeset
for help on using the changeset viewer.