diff --git a/client/src/components/time-ticket-list/time-ticket-list.component.jsx b/client/src/components/time-ticket-list/time-ticket-list.component.jsx index 73de57e33..11ec514fe 100644 --- a/client/src/components/time-ticket-list/time-ticket-list.component.jsx +++ b/client/src/components/time-ticket-list/time-ticket-list.component.jsx @@ -254,24 +254,41 @@ export function TimeTicketList({ timeticket: record }} disabled={ - record.committed_at - ? HasRbacAccess({ - bodyshop, - authLevel: authLevel, - action: "timetickets:editcommitted" - }) && - HasRbacAccess({ - bodyshop, - authLevel: authLevel, - action: "timetickets:shiftedit" - }) - : HasRbacAccess({ + record.ciecacode + ? record.committed_at + ? HasRbacAccess({ + bodyshop, + authLevel: authLevel, + action: "timetickets:editcommitted" + }) && + HasRbacAccess({ + bodyshop, + authLevel: authLevel, + action: "timetickets:edit" + }) + : HasRbacAccess({ + bodyshop, + authLevel: authLevel, + action: "timetickets:edit" + }) + : record.committed_at + ? HasRbacAccess({ + bodyshop, + authLevel: authLevel, + action: "timetickets:editcommitted" + }) && + HasRbacAccess({ bodyshop, authLevel: authLevel, action: "timetickets:shiftedit" }) - ? disabled - : !record.jobid + : HasRbacAccess({ + bodyshop, + authLevel: authLevel, + action: "timetickets:shiftedit" + }) + ? disabled + : !record.jobid } >