Commit Graph

12 Commits

Author SHA1 Message Date
c7482016ce Implement superadmin login redirection and session handling improvements
This commit introduces a new function, `fxSuperadmRedirectToLoginIfNeeded`, to streamline the login redirection process for superadmin users. It enhances session management by checking for user authentication and allowing legacy account access under specific conditions. Additionally, the login flow is updated to ensure users are redirected appropriately after login, improving the overall security and user experience in the superadmin interface. These changes aim to enhance maintainability and clarity in session handling across various superadmin pages.
2026-07-07 14:15:48 -04:00
762ac838b6 Refactor promoteur hub logic and enhance session handling
This commit updates the promoteur hub functionality by introducing a new function, `fxPromoteurHubIsAvailable`, to streamline the logic for determining hub access. The existing `fxPromoteurHubShouldUse` function is modified to incorporate this new check, improving clarity and maintainability. Additionally, comments are added to clarify session handling in the `fxLoginCompte` function, ensuring better understanding of public login behavior. These changes aim to enhance the robustness of the promoteur hub interface and improve code readability.
2026-07-07 10:45:03 -04:00
93cb9f5e81 Refactor authentication logic in superadmin interface and streamline session handling
This commit updates the authentication process in `index.php` and `rapport_new.php` by introducing new functions for checking user permissions, specifically `fxSuperadmIsLoggedIn` and `fxSuperadmReportsAllowed`. The session handling is simplified, removing redundant checks and enhancing clarity. Additionally, the memory limit setting in `rapport_new.php` is adjusted for consistency. These changes aim to improve the security and maintainability of the superadmin interface.
2026-07-06 19:47:51 -04:00
670fd20e44 Implement sidebar static synchronization logic and update sync function documentation
This commit introduces a new variable for sidebar static synchronization based on the HTTP_HOST, enhancing the conditions under which static database synchronization is allowed. Additionally, the documentation for the sync function is updated to reflect alignment with the new logic, improving clarity on its operational context. These changes aim to streamline the synchronization process and enhance the overall functionality of the superadmin interface.
2026-07-06 14:11:06 -04:00
0343a8e4a7 Refactor session management and enhance user feedback in superadmin interface
This commit improves session management within the superadmin interface by introducing a new session validation function that ensures active sessions are maintained and provides JSON responses for session expiration. Additionally, the session timeout duration is standardized, and user feedback is enhanced with alerts for expired sessions. The codebase is streamlined by removing deprecated session handling logic, improving overall clarity and maintainability. These changes aim to enhance user experience and ensure robust session handling across the application.
2026-07-03 20:06:59 -04:00
f065eb5cb6 Enhance ChronoTrack API entry deletion and session management
This commit improves the entry deletion process within the ChronoTrack API by introducing a new function to handle deletion attempts with context requirements. It also enhances session management by implementing a session validation function that provides JSON responses for session expiration, improving user feedback during AJAX calls. Additionally, the synchronization logic is updated to utilize the new deletion function, ensuring better error handling and reporting. These changes aim to streamline entry management and enhance the overall user experience within the API.
2026-07-03 12:28:38 -04:00
5936cdb61c Add legacy promoteur functionality and migration enhancements
This commit introduces several enhancements related to the legacy promoteur system. It adds a new function to check if the legacy promoteur site is enabled and updates various functions to utilize this check, ensuring that legacy features are only accessible when appropriate. Additionally, it refines the migration process for legacy accounts, including improved handling of migration statistics and event access. The admin interface is updated to reflect these changes, enhancing the overall management of legacy promoteur accounts. The version code is updated to reflect these changes.
2026-07-01 14:14:25 -04:00
fd26c90098 Implement event access grouping and enhance UI for event management
This commit introduces a new function, `fxEveAccesCompteFormGroupByEvent`, to group active kits and extras by event ID for improved access management in the super admin interface. It also updates the UI to provide clearer information on event access, including a new section for legacy promoter events, and enhances the form elements for better usability. Additionally, the logic for retrieving promoter events is refined to handle empty cases more gracefully.
2026-06-23 14:41:03 -04:00
a23f492621 Refactor static database synchronization access and update UI elements
This commit enhances the static database synchronization feature by refining the `fxSuperadmStaticSyncAllowed` function to improve access control. The UI is updated to conditionally display synchronization options in both the header and sidebar, ensuring that only authorized users can access these tools. This change streamlines the user experience while maintaining security in the admin interface.
2026-06-23 09:12:20 -04:00
6e751b552f Refactor static sync access control and update UI elements
This commit replaces the `fxAdminStaticSyncAllowed` function with `fxSuperadmStaticSyncAllowed` to streamline access control for static database synchronization tools. The UI is updated accordingly to reflect this change, ensuring that only authorized users in development and pre-production environments can access these tools. This enhancement improves the overall user experience and maintains security in the admin interface.
2026-06-22 14:10:24 -04:00
ac21e4aa81 correction suite a la mep 2026-05-20 15:42:01 -04:00
5842222283 Initial clean V5 repository 2026-05-13 09:43:32 -04:00