From cf0d90125ee5ee265e2eea3cb945f9d49964a5e6 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Tue, 28 Apr 2015 16:43:35 +0200 Subject: [PATCH] Project request: authority under which the project is requested not the one of the user --- portal/projectrequestview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/projectrequestview.py b/portal/projectrequestview.py index 69941b32..3d749c85 100644 --- a/portal/projectrequestview.py +++ b/portal/projectrequestview.py @@ -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 -- 2.43.0