Security: gate and client-scope the client overview record pages

This commit is contained in:
johnnyq
2026-08-27 15:27:55 -04:00
parent 4e1d72e06d
commit 32811fd1d2
4 changed files with 14 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ if (isset($_GET['client_id'])) {
$client_url = '';
}
// Perms
enforceUserPermission('module_support');
if (isset($_GET['asset_id'])) {
$asset_id = intval($_GET['asset_id']);
@@ -28,6 +31,7 @@ if (isset($_GET['asset_id'])) {
LEFT JOIN locations ON asset_location_id = location_id
LEFT JOIN asset_interfaces ON interface_asset_id = asset_id AND interface_primary = 1
WHERE asset_id = $asset_id
" . clientScopeSql('asset_client_id') . "
$client_query
LIMIT 1
");