Commit Graph

7 Commits

Author SHA1 Message Date
wrongecho a67de7a8f1 Prevent post pages being accessed directly 2025-01-09 16:09:39 +00:00
johnnyq ed92592aa6 Check to see if arrays are set before executing for each loops to prevent php errors 2024-11-14 19:13:56 -05:00
johnnyq 640a068026 Fix forloop regressions forgot to include POST duh 2024-11-12 17:30:53 -05:00
johnnyq cc97331676 Replaced old logging with new logging function in certificate post 2024-11-09 12:41:24 -05:00
wrongecho 987cd59764 Tidying
- Move more things to new permissions system
- Deduplicate assets post logic into model
- Swap out some "SELECT *" queries when only a couple of rows are actually needed
2024-10-08 23:08:05 +01:00
wrongecho 4e9afd3e6b Certificates - perms and model
Move certificates to the new permissions system
Deduplicate add/edit using a model
2024-10-02 08:32:42 +01:00
Marcus Hill 6363d265ca Refactor POST handling.
- Split into admin and user handlers, each admin page gets its own file now
- Enforce role access once for admin POST requests
- Automatically load POST logic for admin-based requests based on the referring page, otherwise automatically load all user request logic
- Add support for using custom POST handlers
2024-09-29 19:02:28 +01:00