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:
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user