incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/2] git commit: [#6692] Changed ProjectAdminRestController permission to admin only for all views
Date Mon, 07 Oct 2013 19:45:15 GMT
Updated Branches:
  refs/heads/cj/6692 26c031390 -> 68f5f38df


[#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/fbb379dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fbb379dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fbb379dc

Branch: refs/heads/cj/6692
Commit: fbb379dc2604d782dcf9e0b43c6ce85524fefcff
Parents: 26c0313
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Oct 7 18:13:28 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon Oct 7 18:13:28 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/fbb379dc/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