We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ebd456 commit 89e4412Copy full SHA for 89e4412
metricsmentor/main/views.py
@@ -91,6 +91,7 @@ def get_context_data(self, **kwargs):
91
}
92
93
94
+@method_decorator(csrf_exempt, name='dispatch')
95
class ToggleVisibilityView(LoginRequiredMixin, View):
96
def post(self, request, *args, **kwargs):
97
if not request.user.is_superuser:
0 commit comments