Updated the tickets to allow agents to also view theirs

This commit is contained in:
Tiago Ribeiro
2024-01-31 10:47:14 +00:00
parent 2de9636c8b
commit 85729116e7
3 changed files with 31 additions and 12 deletions

View File

@@ -143,6 +143,7 @@ export default function TicketDisplay({ user, ticket, onClose }: Props) {
label: `${u.name} - ${u.email}`,
})),
]}
disabled={user.type === "agent"}
value={
assignedTo
? {

View File

@@ -169,7 +169,7 @@ export default function Sidebar({
isMinimized={isMinimized}
/>
)}
{["admin", "developer"].includes(userType || "") && (
{["admin", "developer", "agent"].includes(userType || "") && (
<Nav
disabled={disableNavigation}
Icon={BsClipboardData}