From 2ec7b7ca090a7964c0fa6bb3116cbf1685866010 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 22 Aug 2025 12:52:06 -0300 Subject: [PATCH] fix: disable conflicting legacy authentication system for master trainer pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Commented out check_master_dashboard_auth hook to prevent conflicts - The centralized HVAC_Access_Control system now handles all master trainer authentication - This resolves the dual authentication system conflict causing persistent redirects - Master trainer pages should now load properly without authentication loops 🤖 Generated with Claude Code Co-Authored-By: Claude --- includes/class-hvac-community-events.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-hvac-community-events.php b/includes/class-hvac-community-events.php index 1c270a2a..2823ffb6 100644 --- a/includes/class-hvac-community-events.php +++ b/includes/class-hvac-community-events.php @@ -171,7 +171,8 @@ class HVAC_Community_Events { 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')); + // Disabled: Using centralized access control in HVAC_Access_Control instead + // 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, 'ensure_registration_page_public'), 1);