Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SupportView login_required #7997

Merged
merged 2 commits into from Mar 9, 2021
Merged

Make SupportView login_required #7997

merged 2 commits into from Mar 9, 2021

Conversation

ericholscher
Copy link
Member

No description provided.

@ericholscher ericholscher changed the title Release 5.12.0 Make SupportView login_required Mar 9, 2021
@ericholscher ericholscher requested a review from a team March 9, 2021 17:00
@@ -26,7 +27,7 @@
TemplateView
.as_view(template_name='security.txt', content_type='text/plain'),
),
url(r'^support/$', SupportView.as_view(), name='support'),
url(r'^support/$', login_required(SupportView.as_view()), name='support'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this mxin in our code base

class PrivateViewMixin(LoginRequiredMixin):

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, should probably chagne

as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, our mixin basically inherits from that, I think we can use django's mixin directly, don't think we would be adding any other logic there.

Use PrivateViewMixin
@humitos humitos added the PR: hotfix Pull request applied as hotfix to release label Mar 9, 2021
@ericholscher ericholscher merged commit 2850702 into master Mar 9, 2021
3 checks passed
@ericholscher ericholscher deleted the auth-support-form branch March 9, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: hotfix Pull request applied as hotfix to release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants