Skip to content

Commit af88704

Browse files
committed
Make SupportView login_required
Use PrivateViewMixin
1 parent 3ffb4da commit af88704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/core/views/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from readthedocs.builds.models import Version
1616
from readthedocs.core.utils.general import wipe_version_via_slugs
17+
from readthedocs.core.mixins import PrivateViewMixin
1718
from readthedocs.projects.models import Project
1819

1920
log = logging.getLogger(__name__)
@@ -39,7 +40,7 @@ def get_context_data(self, **kwargs):
3940
return context
4041

4142

42-
class SupportView(TemplateView):
43+
class SupportView(TemplateView, PrivateViewMixin):
4344

4445
template_name = 'support/index.html'
4546

0 commit comments

Comments
 (0)