Project request: authority under which the project is requested not the one of the...
authorLoic Baron <loic.baron@lip6.fr>
Tue, 28 Apr 2015 14:43:35 +0000 (16:43 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Tue, 28 Apr 2015 14:43:35 +0000 (16:43 +0200)
portal/projectrequestview.py

index 69941b3..3d749c8 100644 (file)
@@ -140,7 +140,7 @@ class ProjectRequestView(LoginRequiredAutoLogoutView, ThemeView):
             
             if not errors:
                 logger.info("is_pi on auth_hrn = {}".format(user_authority))
-                if is_pi(wsgi_request, user_hrn, user_authority):
+                if is_pi(wsgi_request, user_hrn, post['authority_hrn']):
                     # PIs can directly create/join project in their own authority...
                     if 'join' in wsgi_request.POST:
                         # join existing project