airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] 05/05: AIRAVATA-2842 Only displaying accessible app modules to user
Date Mon, 16 Jul 2018 22:56:05 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 74e381638fc3a86dd506c3dc311b3b0ac665af92
Author: Marcus Christie <machrist@iu.edu>
AuthorDate: Mon Jul 16 18:55:44 2018 -0400

    AIRAVATA-2842 Only displaying accessible app modules to user
---
 .../apps/api/static/django_airavata_api/js/service_config.js          | 4 ++--
 django_airavata/apps/api/views.py                                     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/django_airavata/apps/api/static/django_airavata_api/js/service_config.js b/django_airavata/apps/api/static/django_airavata_api/js/service_config.js
index 1ceb425..3b0d6c4 100644
--- a/django_airavata/apps/api/static/django_airavata_api/js/service_config.js
+++ b/django_airavata/apps/api/static/django_airavata_api/js/service_config.js
@@ -48,12 +48,12 @@ export default {
             name: "list"
         }, {
             name: "names",
-            url: "/api/compute-resources/all_names",
+            url: "/api/compute-resources/all_names/",
             requestType: 'get',
             modelClass: Object,
         }, {
             name: "namesList",
-            url: "/api/compute-resources/all_names_list",
+            url: "/api/compute-resources/all_names_list/",
             requestType: 'get',
             modelClass: Array,
         }],
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index db622a6..791e972 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -259,7 +259,7 @@ class ApplicationModuleViewSet(APIBackedViewSet):
     lookup_field = 'app_module_id'
 
     def get_list(self):
-        return self.request.airavata_client.getAllAppModules(self.authz_token, self.gateway_id)
+        return self.request.airavata_client.getAccessibleAppModules(self.authz_token, self.gateway_id)
 
     def get_instance(self, lookup_value):
         return self.request.airavata_client.getApplicationModule(self.authz_token, lookup_value)


Mime
View raw message