mirror of https://github.com/itflow-org/itflow
Allow techs to manage locations
This commit is contained in:
parent
c20f9942f1
commit
6b850553cc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue