From cfb13a0c183e680f717501f9fcef6fc3c978ba31 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Wed, 31 Jul 2024 22:06:17 +0100 Subject: [PATCH] Client files bugfix - Hide delete button for techs as they do not have this permission - Remove unused exclude_condition var --- client_file_link_asset_modal.php | 3 +-- client_files.php | 31 ++++++++++++++++++------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/client_file_link_asset_modal.php b/client_file_link_asset_modal.php index bee9b9091..ff43a9e20 100644 --- a/client_file_link_asset_modal.php +++ b/client_file_link_asset_modal.php @@ -24,7 +24,6 @@ $sql_assets_select = mysqli_query($mysqli, "SELECT * FROM assets WHERE asset_client_id = $client_id AND asset_archived_at IS NULL - $exclude_condition ORDER BY asset_name ASC" ); while ($row = mysqli_fetch_array($sql_assets_select)) { @@ -65,7 +64,7 @@ - +