Only show tasks if ticket is open OR when ticket is resolved & there were tasks

This commit is contained in:
wrongecho 2025-02-05 10:48:16 +00:00
parent 66ab0d3f11
commit 341ff69c58
1 changed files with 3 additions and 1 deletions

View File

@ -898,7 +898,8 @@ if (isset($_GET['ticket_id'])) {
<!-- Tasks Card -->
<div class="card card-body">
<?php if (empty($ticket_resolved_at) || (!empty($ticket_resolved_at) && $task_count > 0)) { ?>
<div class="card card-body">
<?php if (empty($ticket_resolved_at) && lookupUserPermission("module_support") >= 2) { ?>
<form action="post.php" method="post" autocomplete="off">
@ -970,6 +971,7 @@ if (isset($_GET['ticket_id'])) {
} ?>
</table>
</div>
<?php } ?>
<!-- End Tasks Card -->