From c71d1f190ea4e51553e033e1f47417fe8afefa3d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 2 Mar 2026 19:15:52 -0500 Subject: [PATCH] locations: Add missing CSRF checks, add missing permission checks, renamed unarchive to restore --- agent/locations.php | 12 ++++---- agent/modals/location/location_add.php | 1 + agent/modals/location/location_edit.php | 1 + agent/modals/location/location_export.php | 1 + agent/modals/location/location_import.php | 1 + agent/post/location.php | 37 +++++++++++++++++------ 6 files changed, 38 insertions(+), 15 deletions(-) diff --git a/agent/locations.php b/agent/locations.php index 85880328..07006655 100644 --- a/agent/locations.php +++ b/agent/locations.php @@ -190,8 +190,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
+ + diff --git a/agent/modals/location/location_export.php b/agent/modals/location/location_export.php index eaed614a..95e07d88 100644 --- a/agent/modals/location/location_export.php +++ b/agent/modals/location/location_export.php @@ -15,6 +15,7 @@ ob_start(); + +