From: Loic Baron Date: Tue, 28 Apr 2015 14:43:35 +0000 (+0200) Subject: Project request: authority under which the project is requested not the one of the... X-Git-Tag: myslice-1.4~33 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=cf0d90125ee5ee265e2eea3cb945f9d49964a5e6 Project request: authority under which the project is requested not the one of the user --- 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