allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [01/12] allura git commit: Changed usage permission to read instead of write for refresh button [Forced Update!]
Date Tue, 12 Jul 2016 14:04:26 GMT
Repository: allura
Updated Branches:
  refs/heads/db/3593 8045d648d -> b8a0b1b8d (forced update)


Changed usage permission to read instead of write for refresh button


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

Branch: refs/heads/db/3593
Commit: 2dac879ffbc50e8614143d32adb096f1ad19550b
Parents: 190a1cb
Author: Rohan Verma <rohanverma2004@gmail.com>
Authored: Thu Jun 30 14:32:21 2016 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Mon Jul 11 11:05:39 2016 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/repository.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/2dac879f/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index 4d8abd5..14745bf 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -468,9 +468,8 @@ class MergeRequestController(object):
 
     @expose()
     @require_post()
-    @validate(mr_dispose_form)
     def refresh(self, **kw):
-        require_access(self.req, 'write')
+        require_access(self.req, 'read')
         with self.req.push_downstream_context():
             self.req.downstream['commit_id'] = c.app.repo.commit(self.req.source_branch)._id
         redirect(self.req.url())


Mime
View raw message