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:
scmmishra
2019-03-19 12:30:43 +05:30
parent 7ad5619318
commit 000e706337
5 changed files with 34 additions and 18 deletions

View File

@@ -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"
}
}
},