diff --git a/src/containers/course-section/resource-item/ResourceItem.tsx b/src/containers/course-section/resource-item/ResourceItem.tsx index e274464ee..d1817d589 100644 --- a/src/containers/course-section/resource-item/ResourceItem.tsx +++ b/src/containers/course-section/resource-item/ResourceItem.tsx @@ -173,7 +173,11 @@ const ResourceItem: FC = ({ ) const onResourceItemClick = () => { - if (!isView) return + if ( + !isView || + resourceAvailabilityStatus !== ResourceAvailabilityStatusEnum.Open + ) + return const type = resourceType ?? resource.resourceType if (type === ResourceType.Attachment) {