Commit ebee8c34 authored by Sli's avatar Sli

forum: fix ForumTopicSubscribeView error 500 with anonymous user

parent 4ecad1c7
Pipeline #2167 passed with stage
in 34 minutes and 20 seconds
......@@ -42,6 +42,7 @@ from core.views import (
CanEditMixin,
CanEditPropMixin,
CanCreateMixin,
UserIsLoggedMixin,
can_view,
)
from core.views.forms import MarkdownInput
......@@ -273,7 +274,9 @@ class ForumTopicEditView(CanEditMixin, UpdateView):
template_name = "core/edit.jinja"
class ForumTopicSubscribeView(CanViewMixin, SingleObjectMixin, RedirectView):
class ForumTopicSubscribeView(
CanViewMixin, UserIsLoggedMixin, SingleObjectMixin, RedirectView
):
model = ForumTopic
pk_url_kwarg = "topic_id"
permanent = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment