Add Missing clientEnforcement in various modals, already handled on POST also add client selection in edit trip and enforce client permissions on trips

This commit is contained in:
johnnyq
2026-07-09 16:07:54 -04:00
parent 68f705b135
commit 317fe91359
50 changed files with 188 additions and 37 deletions

View File

@@ -40,7 +40,7 @@ if (isset($_POST['edit_trip'])) {
$trip_id = intval($_POST['trip_id']);
$client_id = intval(getFieldById('trips', $trip_id, 'trip_client_id'));
$client_id = intval($_POST['client_id']);
if ($client_id) {
enforceClientAccess();