allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/3] allura git commit: [#8094] use a login overlay on project creation form
Date Tue, 05 Jul 2016 17:44:32 GMT
[#8094] use a login overlay on project creation form


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/932ed27b
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/932ed27b
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/932ed27b

Branch: refs/heads/master
Commit: 932ed27b4abc7526ac2e19f1f45736b90dcc3610
Parents: 08b48ca
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Jul 1 15:38:00 2016 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jul 1 16:41:42 2016 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/project.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/932ed27b/Allura/allura/controllers/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index d2039a7..ee0927b 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -144,7 +144,8 @@ class NeighborhoodController(object):
     @expose('jinja:allura:templates/neighborhood_add_project.html')
     @without_trailing_slash
     def add_project(self, **form_data):
-        require_access(self.neighborhood, 'register')
+        with h.login_overlay():
+            require_access(self.neighborhood, 'register')
         verify = c.form_errors == {'_the_form': u'phone-verification'}
         c.show_phone_verification_overlay = verify
         c.add_project = W.add_project


Mime
View raw message