Skip to content

Commit

Permalink
Allow techs to manage locations
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho committed Sep 7, 2024
1 parent c20f994 commit 6b85055
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions post/location.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

if(isset($_POST['add_location'])){

validateAdminRole();
validateTechRole();

require_once 'post/client_locations_model.php';

Expand Down Expand Up @@ -65,7 +65,7 @@

if(isset($_POST['edit_location'])){

validateAdminRole();
validateTechRole();

require_once 'post/client_locations_model.php';

Expand Down Expand Up @@ -160,6 +160,8 @@

if(isset($_GET['unarchive_location'])){

validateTechRole();

$location_id = intval($_GET['unarchive_location']);

// Get Location Name and Client ID for logging and alert message
Expand Down

0 comments on commit 6b85055

Please sign in to comment.