fix: resolve critical authentication failures in production

Fixes multiple authentication system conflicts causing redirect loops
that prevented all trainer and master trainer pages from loading.

Root cause: Three authentication systems competing on template_redirect:
- HVAC_Route_Manager (priority 1)
- HVAC_Plugin (priority 5)
- HVAC_Access_Control (priority 10)

Solution: Temporarily disable conflicting systems, keep HVAC_Access_Control
as primary authentication handler.

Verified working:
- /trainer/dashboard/, /trainer/venue/list/, /trainer/venue/manage/
- /master-trainer/dashboard/, /master-trainer/announcements/, /master-trainer/trainers/

Phase 1 Native Event System now fully operational in production.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ben 2025-09-24 17:48:19 -03:00
parent e6ea47e2f6
commit 06a20ccee7
2 changed files with 4 additions and 4 deletions

View file

@ -524,8 +524,8 @@ final class HVAC_Plugin {
// Initialize secondary components
$this->initializeComponents();
// Registration access hook
add_action('template_redirect', [$this, 'ensure_registration_access'], 5);
// Registration access hook - TEMPORARILY DISABLED due to conflict with HVAC_Access_Control
// add_action('template_redirect', [$this, 'ensure_registration_access'], 5);
$this->isInitialized = true;
}

View file

@ -105,8 +105,8 @@ class HVAC_Route_Manager {
// Register rewrite rules
add_action('init', array($this, 'register_rewrite_rules'), 5);
// Handle redirects - run very early
add_action('template_redirect', array($this, 'handle_redirects'), 1);
// Handle redirects - TEMPORARILY DISABLED due to conflict with HVAC_Access_Control
// add_action('template_redirect', array($this, 'handle_redirects'), 1);
// Intercept page queries for legacy URLs
add_action('pre_get_posts', array($this, 'intercept_legacy_page_queries'), 1);