Merge pull request #1037 from itflow-org/tech-loc-perms

Allow techs to manage locations
This commit is contained in:
Johnny 2024-09-07 12:05:11 -04:00 committed by GitHub
commit d1410ef967
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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