From f9e98cb5cd2d2015a5376c15bc5f53afd98a1ef9 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 22 Aug 2025 12:53:03 -0300 Subject: [PATCH] refactor: consolidate to single authentication system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disabled all legacy authentication hooks in class-hvac-community-events.php - All authentication now handled by centralized HVAC_Access_Control system - Eliminates dual authentication conflicts that were causing page redirects - Pages covered: event-summary, email-attendees, certificate pages, google-sheets, master-trainer pages - Cleaner architecture with single source of truth for access control 🤖 Generated with Claude Code Co-Authored-By: Claude --- includes/class-hvac-community-events.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/class-hvac-community-events.php b/includes/class-hvac-community-events.php index 2823ffb6..c90363df 100644 --- a/includes/class-hvac-community-events.php +++ b/includes/class-hvac-community-events.php @@ -167,13 +167,13 @@ class HVAC_Community_Events { // Initialize TEC field processor system $this->init_tec_field_processor(); - // Authentication checks - these should eventually move to HVAC_Access_Control - add_action('template_redirect', array($this, 'check_event_summary_auth')); - add_action('template_redirect', array($this, 'check_email_attendees_auth')); - add_action('template_redirect', array($this, 'check_certificate_pages_auth')); - // Disabled: Using centralized access control in HVAC_Access_Control instead + // Authentication checks - DISABLED: All moved to centralized HVAC_Access_Control system + // The following legacy auth checks are now handled by HVAC_Access_Control::check_page_access() + // add_action('template_redirect', array($this, 'check_event_summary_auth')); + // add_action('template_redirect', array($this, 'check_email_attendees_auth')); + // add_action('template_redirect', array($this, 'check_certificate_pages_auth')); // add_action('template_redirect', array($this, 'check_master_dashboard_auth')); - add_action('template_redirect', array($this, 'check_google_sheets_auth')); + // add_action('template_redirect', array($this, 'check_google_sheets_auth')); add_action('template_redirect', array($this, 'ensure_registration_page_public'), 1); // Scripts and styles are now handled by HVAC_Scripts_Styles