feat: Only student progress is recorded in LMS
Changes - Instructors can freely audit the course and their progress will not be recorded - Added check for super access for get_program in utils.py - Guests can view topics page - Instructors can see explore topic button - Content Activity is only saved for a student in lms.py - Modified variable names in topic.py
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class='course-buttons text-center col-xs-4 col-sm-3 col-md-2'>
|
||||
<a-button v-if="isLogin"
|
||||
<a-button
|
||||
:type="buttonType"
|
||||
size="sm btn-block"
|
||||
:route="courseRoute"
|
||||
@@ -61,18 +61,18 @@ export default {
|
||||
}
|
||||
}
|
||||
else {
|
||||
return " hidden"
|
||||
return "info"
|
||||
}
|
||||
},
|
||||
isLogin() {
|
||||
return lms.store.checkLogin()
|
||||
},
|
||||
buttonName() {
|
||||
if(lms.store.checkLogin()){
|
||||
if(lms.store.checkProgramEnrollment(this.program_name)){
|
||||
return this.courseMeta.flag
|
||||
}
|
||||
else {
|
||||
return "Enroll"
|
||||
return "Explore"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user