Merge pull request #1037 from itflow-org/tech-loc-perms
Allow techs to manage locations
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
if(isset($_POST['add_location'])){
|
if(isset($_POST['add_location'])){
|
||||||
|
|
||||||
validateAdminRole();
|
validateTechRole();
|
||||||
|
|
||||||
require_once 'post/client_locations_model.php';
|
require_once 'post/client_locations_model.php';
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ if(isset($_POST['add_location'])){
|
|||||||
|
|
||||||
if(isset($_POST['edit_location'])){
|
if(isset($_POST['edit_location'])){
|
||||||
|
|
||||||
validateAdminRole();
|
validateTechRole();
|
||||||
|
|
||||||
require_once 'post/client_locations_model.php';
|
require_once 'post/client_locations_model.php';
|
||||||
|
|
||||||
@@ -160,6 +160,8 @@ if(isset($_GET['archive_location'])){
|
|||||||
|
|
||||||
if(isset($_GET['unarchive_location'])){
|
if(isset($_GET['unarchive_location'])){
|
||||||
|
|
||||||
|
validateTechRole();
|
||||||
|
|
||||||
$location_id = intval($_GET['unarchive_location']);
|
$location_id = intval($_GET['unarchive_location']);
|
||||||
|
|
||||||
// Get Location Name and Client ID for logging and alert message
|
// Get Location Name and Client ID for logging and alert message
|
||||||
|
|||||||
Reference in New Issue
Block a user