Fix supervisor cypress

This commit is contained in:
Daniel Egger 2024-07-25 17:31:31 +02:00
parent 661f5aa435
commit ca37f74e45
1 changed files with 2 additions and 6 deletions

View File

@ -381,10 +381,8 @@ def get_widgets_for_course(
widgets.append(WidgetType.COMPETENCE_CERTIFICATE_WIDGET.value)
if "EXPERT" in relation_roles or "SUPERVISOR" in relation_roles:
widgets.append(WidgetType.MENTOR_TASKS_WIDGET.value)
widgets.append(WidgetType.MENTOR_PERSON_WIDGET.value)
if is_uk:
widgets.append(WidgetType.MENTOR_COMPETENCE_WIDGET.value)
widgets.append(WidgetType.UK_STATISTICS_WIDGET.value)
if "LEARNING_MENTOR" in relation_roles:
widgets.append(WidgetType.MENTOR_PERSON_WIDGET.value)
@ -532,9 +530,7 @@ def get_mentor_open_tasks_count(request, course_id: str):
return Response(
status=200,
data={
"open_task_count": _get_mentor_open_tasks_count(
course_id, request.user
) # noqa
"open_task_count": _get_mentor_open_tasks_count(course_id, request.user) # noqa
},
)
except PermissionDenied as e: