Prevent tech/accountant from performing certain tasks as per access matrix

This commit is contained in:
Marcus Hill
2022-03-27 15:32:40 +01:00
parent 139bb6fd73
commit e6a314d233
18 changed files with 678 additions and 76 deletions

View File

@@ -434,9 +434,11 @@ $user_active_assigned_tickets = $row['total_tickets_assigned'];
<div class="dropdown-menu">
<a class="dropdown-item" href="#" data-toggle="modal"
data-target="#editTicketModal<?php echo $ticket_id; ?>">Edit</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger"
href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
<?php if($session_user_role == 3) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger"
href="post.php?delete_ticket=<?php echo $ticket_id; ?>">Delete</a>
<?php } ?>
</div>
</div>
<?php } ?>