Skip to content

Commit e9f98e7

Browse files
committed
fix: Load navbar correctly if there is no current course
1 parent 60594e9 commit e9f98e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/templates/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
{% endif -%}
8585
</ul>
8686
<ul class="navbar-nav ms-auto">
87-
{%- if current_user.role.is_manager %}
87+
{%- if current_user.role.is_manager and current_user.last_course_viewed %}
8888
<li class="nav-item">
8989
<a href="{{ url_for('status', course_id=current_user.last_course_viewed.id) }}" class="nav-link">
9090
<i class="fa fa-check-square-o" aria-hidden="true"></i>

0 commit comments

Comments
 (0)