feat: program restrictions

This commit is contained in:
Jannat Patel
2024-11-21 17:10:24 +05:30
parent 582c7af12d
commit 64ed0b3e94
14 changed files with 190 additions and 137 deletions

View File

@@ -303,9 +303,9 @@ const trashChapter = (chapterName) => {
}
const redirectToChapter = (chapter) => {
if (!chapter.is_scorm_package) return
event.preventDefault()
if (props.allowEdit) return
if (!chapter.is_scorm_package) return
if (!user.data) {
showToast(
__('You are not enrolled'),