Allow techs to manage locations

This commit is contained in:
wrongecho 2024-09-07 12:25:19 +01:00
parent c20f9942f1
commit 6b850553cc
1 changed files with 4 additions and 2 deletions

View File

@ -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