MB-1192: [feat] Add course ended, not passing certificate status to dashboard messaging (#28405)
* [feat] Add course over, not passing status to dash If a student has not passed a course, the course has ended, and they have a verified seat, we want to show them a message at a glance on the dashboard.
This commit is contained in:
@@ -340,6 +340,12 @@ class OutlineTabView(RetrieveAPIView):
|
||||
if user_grade:
|
||||
user_has_passing_grade = user_grade.passed
|
||||
|
||||
user_has_passing_grade = False
|
||||
if not request.user.is_anonymous:
|
||||
user_grade = CourseGradeFactory().read(request.user, course)
|
||||
if user_grade:
|
||||
user_has_passing_grade = user_grade.passed
|
||||
|
||||
data = {
|
||||
'access_expiration': access_expiration,
|
||||
'cert_data': cert_data,
|
||||
|
||||
Reference in New Issue
Block a user