Client files bugfix

- Hide delete button for techs as they do not have this permission
- Remove unused exclude_condition var
This commit is contained in:
Marcus Hill
2024-07-31 22:06:17 +01:00
parent cc0de316ab
commit cfb13a0c18
2 changed files with 19 additions and 15 deletions

View File

@@ -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 @@
<?php
}
?>
</div>
<div class="modal-footer bg-white">
<button type="submit" name="link_asset_to_file" class="btn btn-primary text-bold"><i class="fa fa-check mr-2"></i>Link</button>