upskill-event-manager/includes
bengizmo 5e9d122f5a Add authentication protection for master trainer pages
- Added master_trainer_pages array with protected master trainer pages
- Created is_master_trainer_page() method to identify master trainer URLs
- Implemented check_master_trainer_access() to require hvac_master_trainer role
- Master trainer pages now redirect to login if not authenticated
- Only users with hvac_master_trainer role can access these pages

This ensures master trainer dashboard and tools are properly protected.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 19:53:06 -03:00
..
admin fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-attendee-profile.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-event-author-fixer.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-event-form-handler.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-access-control.php Add authentication protection for master trainer pages 2025-07-28 19:53:06 -03:00
class-hvac-activator.php fix: Update activator to use new HVAC_Route_Manager class 2025-07-28 18:07:35 -03:00
class-hvac-approval-workflow.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-community-events.php refactor: Implement new plugin architecture with single-responsibility classes 2025-07-28 18:04:48 -03:00
class-hvac-dashboard-data-fixed.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-dashboard-data-refactored.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-dashboard-data.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-dashboard.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-deactivator.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-event-manage-header.php fix: Registration page content and event manage styling issues 2025-07-25 16:58:34 -03:00
class-hvac-event-navigation.php feat: Implement trainer approval workflow with status management 2025-07-28 12:38:34 -03:00
class-hvac-form-builder.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-help-system.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-logger.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-manage-event.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-master-dashboard-data.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-page-manager.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-plugin.php refactor: Implement new plugin architecture with single-responsibility classes 2025-07-28 18:04:48 -03:00
class-hvac-registration.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-roles.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-route-manager.php Implement comprehensive legacy URL redirect handling 2025-07-28 19:50:10 -03:00
class-hvac-scripts-styles.php refactor: Implement new plugin architecture with single-responsibility classes 2025-07-28 18:04:48 -03:00
class-hvac-security.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-settings-refactored.php fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
class-hvac-settings.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-shortcodes.php refactor: Implement new plugin architecture with single-responsibility classes 2025-07-28 18:04:48 -03:00
class-hvac-template-loader.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
class-hvac-trainer-status.php feat: Implement trainer approval workflow with status management 2025-07-28 12:38:34 -03:00
legacy-redirects.php fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00