From 6b850553ccf56261837e6f1158d5be269d5729e9 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 7 Sep 2024 12:25:19 +0100 Subject: [PATCH] Allow techs to manage locations --- post/location.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/post/location.php b/post/location.php index e60cb3a4..660133a4 100644 --- a/post/location.php +++ b/post/location.php @@ -6,7 +6,7 @@ if(isset($_POST['add_location'])){ - validateAdminRole(); + validateTechRole(); require_once 'post/client_locations_model.php'; @@ -65,7 +65,7 @@ if(isset($_POST['add_location'])){ if(isset($_POST['edit_location'])){ - validateAdminRole(); + validateTechRole(); require_once 'post/client_locations_model.php'; @@ -160,6 +160,8 @@ if(isset($_GET['archive_location'])){ if(isset($_GET['unarchive_location'])){ + validateTechRole(); + $location_id = intval($_GET['unarchive_location']); // Get Location Name and Client ID for logging and alert message