Commit de77742baa122c9cb79d7b7a033e3479500beb2d
1 parent
0155bc32
Exists in
master
and in
5 other branches
guest bug #238
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
courses/views.py
... | ... | @@ -321,7 +321,7 @@ class DeleteCourseView(LoginRequiredMixin, HasRoleMixin, LogMixin, generic.Delet |
321 | 321 | return reverse_lazy('course:manage') |
322 | 322 | |
323 | 323 | |
324 | -class CourseView(LogMixin, NotificationMixin, generic.DetailView): | |
324 | +class CourseView(LoginRequiredMixin, LogMixin, NotificationMixin, generic.DetailView): | |
325 | 325 | log_component = "courses" |
326 | 326 | log_action = "viewed" |
327 | 327 | log_resource = "course" |
... | ... | @@ -332,6 +332,7 @@ class CourseView(LogMixin, NotificationMixin, generic.DetailView): |
332 | 332 | model = Course |
333 | 333 | context_object_name = 'course' |
334 | 334 | template_name = 'course/view.html' |
335 | + | |
335 | 336 | |
336 | 337 | def get_context_data(self, **kwargs): |
337 | 338 | subjects = None | ... | ... |