mirror of
https://github.com/itflow-org/itflow
synced 2026-08-21 06:55:12 +00:00
More Client Enforcement in modals across the app
This commit is contained in:
4
agent/modals/vendor/vendor_add.php
vendored
4
agent/modals/vendor/vendor_add.php
vendored
@@ -4,6 +4,10 @@ require_once '../../../includes/modal_header.php';
|
||||
|
||||
$client_id = intval($_GET['client_id'] ?? 0);
|
||||
|
||||
if ($client_id) {
|
||||
enforceClientAccess();
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
5
agent/modals/vendor/vendor_details.php
vendored
5
agent/modals/vendor/vendor_details.php
vendored
@@ -19,6 +19,11 @@ $hours = escapeSql($row['vendor_hours']);
|
||||
$sla = escapeSql($row['vendor_sla']);
|
||||
$code = escapeSql($row['vendor_code']);
|
||||
$notes = escapeSql($row['vendor_notes']);
|
||||
$client_id = intval($row['vendor_client_id']);
|
||||
|
||||
if ($client_id) {
|
||||
enforceClientAccess();
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
|
||||
5
agent/modals/vendor/vendor_edit.php
vendored
5
agent/modals/vendor/vendor_edit.php
vendored
@@ -21,6 +21,11 @@ $vendor_sla = escapeHtml($row['vendor_sla']);
|
||||
$vendor_code = escapeHtml($row['vendor_code']);
|
||||
$vendor_notes = escapeHtml($row['vendor_notes']);
|
||||
$vendor_template_id = intval($row['vendor_template_id']);
|
||||
$client_id = intval($row['vendor_client_id']);
|
||||
|
||||
if ($client_id) {
|
||||
enforceClientAccess();
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user