Request slice authority_hrn only, no names, fixed for fed4fire
authorLoic Baron <loic.baron@lip6.fr>
Sat, 25 Apr 2015 08:42:10 +0000 (10:42 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Sat, 25 Apr 2015 08:42:10 +0000 (10:42 +0200)
portal/slicerequestview.py

index 70ef4b7..c7102dc 100644 (file)
@@ -111,11 +111,12 @@ class SliceRequestView (LoginRequiredAutoLogoutView, ThemeView):
             # get the domain url
             current_site = Site.objects.get_current()
             current_site = current_site.domain
-            
-            # getting the authority_hrn from the selected organization
-            for authority in authorities:
-                if authority['name'] == request.POST.get('org_name', ''):
-                    authority_hrn = authority['authority_hrn']
+           
+            if theme.theme != 'fed4fire':
+                # getting the authority_hrn from the selected organization
+                for authority in authorities:
+                    if authority['name'] == request.POST.get('org_name', ''):
+                        authority_hrn = authority['authority_hrn']
 
             # Handle the case when we use only hrn and not name
             if authority_hrn is None: