refactor: consolidate to single authentication system
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
2ec7b7ca09
commit
f9e98cb5cd
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue