You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/07/19 19:38:50 UTC

[airavata-django-portal] branch staging updated: AIRAVATA-3383 Add missing @login_required decorator

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/staging by this push:
     new b0a5658  AIRAVATA-3383 Add missing @login_required decorator
b0a5658 is described below

commit b0a5658a2a9742461026e7933ea9c152c258dc17
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jul 19 15:29:08 2021 -0400

    AIRAVATA-3383 Add missing @login_required decorator
---
 django_airavata/apps/auth/views.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/django_airavata/apps/auth/views.py b/django_airavata/apps/auth/views.py
index 4174b4f..0eba36a 100644
--- a/django_airavata/apps/auth/views.py
+++ b/django_airavata/apps/auth/views.py
@@ -603,6 +603,7 @@ class UserViewSet(viewsets.ModelViewSet):
         return Response(serializer.data)
 
 
+@login_required
 def download_settings_local(request):
 
     if not (request.is_gateway_admin or request.is_read_only_gateway_admin):