Made it so for planned assignments, if the user is allowed to view but not edit, they can view it

This commit is contained in:
Tiago Ribeiro
2024-11-01 16:44:36 +00:00
parent ce353f34c7
commit dc4694eb17

View File

@@ -157,7 +157,7 @@ export default function AssignmentsPage({assignments, corporateAssignments, enti
onClick={ onClick={
mapBy(entitiesAllowEdit, 'id').includes(a.entity || "") mapBy(entitiesAllowEdit, 'id').includes(a.entity || "")
? () => router.push(`/assignments/creator/${a.id}`) ? () => router.push(`/assignments/creator/${a.id}`)
: undefined : () => router.push(`/assignments/${a.id}`)
} }
key={a.id} key={a.id}
/> />