From 928d723a7715b546c999abe1b3092f765c21eef5 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 28 Sep 2024 20:07:54 +0100 Subject: [PATCH] More enforcing user permissions --- post/location_model.php | 2 +- post/network_model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/post/location_model.php b/post/location_model.php index 8c9cd80c..ecfd7eaf 100644 --- a/post/location_model.php +++ b/post/location_model.php @@ -11,4 +11,4 @@ $phone = preg_replace("/[^0-9]/", '',$_POST['phone']); $hours = sanitizeInput($_POST['hours']); $notes = sanitizeInput($_POST['notes']); $contact = intval($_POST['contact']); -$location_primary = intval($_POST['location_primary']); \ No newline at end of file +$location_primary = intval($_POST['location_primary']); diff --git a/post/network_model.php b/post/network_model.php index 673849d1..78839e11 100644 --- a/post/network_model.php +++ b/post/network_model.php @@ -10,4 +10,4 @@ $secondary_dns = sanitizeInput($_POST['secondary_dns']); $dhcp_range = sanitizeInput($_POST['dhcp_range']); $notes = sanitizeInput($_POST['notes']); $location_id = intval($_POST['location']); -$client_id = intval($_POST['client_id']); \ No newline at end of file +$client_id = intval($_POST['client_id']);