allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] allura git commit: [#8078] use a login overlay on project creation form
Date Fri, 01 Jul 2016 19:38:08 GMT
[#8078] 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/b4c9652e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/b4c9652e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/b4c9652e

Branch: refs/heads/db/8078
Commit: b4c9652e7ac1fc152d233d1d49a276860e0efe3a
Parents: 102a54e
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 15:38:00 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/b4c9652e/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