allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [1/2] allura git commit: If a user can "write" to a MR but not "post" to it, still let them reject their MR
Date Thu, 16 Nov 2017 19:26:56 GMT
Repository: allura
Updated Branches:
  refs/heads/master b9a9b387e -> 49fccb7aa


If a user can "write" to a MR but not "post" to it, still let them reject their MR


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

Branch: refs/heads/master
Commit: 66692dd6f0344ea8d8e30e0483fd2c04821120be
Parents: 320cd81
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Nov 14 17:45:57 2017 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Nov 14 17:45:57 2017 -0500

----------------------------------------------------------------------
 Allura/allura/model/repository.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/66692dd6/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index 9528885..fe898e9 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -963,7 +963,7 @@ class MergeRequest(VersionedArtifact, ActivityObject):
     def add_meta_post(self, changes):
         tmpl = g.jinja2_env.get_template('allura:templates/repo/merge_request_changed.html')
         message = tmpl.render(changes=changes)
-        self.discussion_thread.add_post(text=message, is_meta=True)
+        self.discussion_thread.add_post(text=message, is_meta=True, ignore_security=True)
 
 
 


Mime
View raw message