allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [40/42] git commit: [#6692] Changed ProjectAdminRestController permission to admin only for all views
Date Tue, 29 Oct 2013 22:23:41 GMT
[#6692] Changed ProjectAdminRestController permission to admin only for all views

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/6692
Commit: b58e5aa50abb2eba69086d6c1359b0dcb0372e01
Parents: d2e888c
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Oct 7 18:13:28 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Oct 29 15:08:58 2013 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b58e5aa5/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index c128900..aa13d51 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -667,12 +667,11 @@ class ProjectAdminController(BaseController):
 class ProjectAdminRestController(BaseController):
 
     def _check_security(self):
-        require_access(c.project, 'read')
+        require_access(c.project, 'admin')
 
     @expose('json:')
     @require_post()
     def export(self, tools=None, **kw):
-        require_access(c.project, 'admin')
         if not tools:
             raise exc.HTTPBadRequest('Must give at least one tool mount point to export')
         tools = aslist(tools,',')


Mime
View raw message