Skip to content

Commit

Permalink
Allow users to edit tickets without needing to log in. (#1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Oct 22, 2024
1 parent 84b083f commit 6a94ae2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ public function block_unauthenticated_actions() {
return;
}

if ( ! is_user_logged_in() ) {
// Temporary: We don't want to block users from editing tickets.
// See: https://github.com/WordPress/wordcamp.org/issues/1393.
$user_is_editing_ticket = in_array( $_REQUEST['tix_action'], array( 'access_tickets', 'edit_attendee' ) );

if ( ! is_user_logged_in() && ! $user_is_editing_ticket ) {
$args = array();
// If this was a registration, pass through the selected tickets and coupon.
if ( 'attendee_info' === $_REQUEST['tix_action'] && isset( $_REQUEST['tix_tickets_selected'] ) ) {
Expand Down

0 comments on commit 6a94ae2

Please sign in to comment.