allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [03/16] allura git commit: [#8230] Change permission check to edit from moderate
Date Mon, 15 Oct 2018 16:02:27 GMT
[#8230] Change permission check to edit from moderate


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

Branch: refs/heads/master
Commit: 3c0041b6a89fccd3d1b07b6aa3af8f4e75c5e96e
Parents: 8410061
Author: Shalitha Suranga <shalithasuranga@gmail.com>
Authored: Fri Oct 12 10:26:03 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Oct 15 15:50:29 2018 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/discuss.py                               | 2 +-
 .../forgediscussion/templates/discussionforums/thread.html         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/3c0041b6/Allura/allura/controllers/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/discuss.py b/Allura/allura/controllers/discuss.py
index 6bdc289..c2fda01 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -347,7 +347,7 @@ class PostController(BaseController):
     @expose('json:')
     @require_post()
     def update_markdown(self, text=None, **kw):  
-        if has_access(self.post, 'moderate'):
+        if has_access(self.post, 'edit'):
             self.post.text = text
             self.post.edit_count = self.post.edit_count + 1
             self.post.last_edit_date = datetime.utcnow()

http://git-wip-us.apache.org/repos/asf/allura/blob/3c0041b6/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
----------------------------------------------------------------------
diff --git a/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html b/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
index 6af3679..7d53a14 100644
--- a/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
+++ b/ForgeDiscussion/forgediscussion/templates/discussionforums/thread.html
@@ -43,7 +43,7 @@
 {% endblock %}
 
 {% block extra_js %}
-    {% if h.has_access(thread, 'moderate') %}
+    {% if h.has_access(thread, 'edit') %}
         <script>
                 new Checklists(".active-md", function(checkbox, callback) {
                 var uri = $(checkbox).closest('.active-md').data('markdownlink');


Mime
View raw message