allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 04/04: [#8263] Revert markdown permission check
Date Fri, 15 Mar 2019 16:36:33 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit dd248dbd8a430f1d2e1f287fe747f81b5a3c1ffa
Author: Shalitha Suranga <shalithasuranga@gmail.com>
AuthorDate: Fri Mar 15 15:42:30 2019 +0530

    [#8263] Revert markdown permission check
---
 Allura/allura/templates/widgets/post_widget.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/templates/widgets/post_widget.html b/Allura/allura/templates/widgets/post_widget.html
index d2c1364..4349d4d 100644
--- a/Allura/allura/templates/widgets/post_widget.html
+++ b/Allura/allura/templates/widgets/post_widget.html
@@ -83,7 +83,7 @@
                 <b>{{value.subject or '(no subject)'}}<br/></b>
             {% endif %}
 
-            <div{% if not c.user.is_anonymous() %} class="active-md" data-markdownlink="{{value.url()}}"
{% endif %}>{{g.markdown.cached_convert(value, 'text')|safe}}</div>&nbsp;
+            <div{% if h.has_access(value, 'moderate') %} class="active-md" data-markdownlink="{{value.url()}}"
{% endif %}>{{g.markdown.cached_convert(value, 'text')|safe}}</div>&nbsp;
             <div class='reactions{% if not c.user.is_anonymous() %} reactions-active{%
endif %}' style='user-select: none; cursor: default'>
               {% for reaction in value.react_counts %}<div class="reaction{% if current_reaction
== reaction %} reaction-current{% endif %}" data-react="{{ reaction }}"><div class="emoj">{{
h.emojize(reaction) }}</div><div class="emoj-count">{{ value.react_counts[reaction]
}}</div></div>{% endfor %}
             </div>


Mime
View raw message