|
@ -184,6 +184,7 @@ |
|
|
{# Only show "View Markdown" (and dropdown) when it's a text topic and the user is |
|
|
{# Only show "View Markdown" (and dropdown) when it's a text topic and the user is |
|
|
allowed to view the content, but can't edit it #} |
|
|
allowed to view the content, but can't edit it #} |
|
|
{% if topic.is_text_type |
|
|
{% if topic.is_text_type |
|
|
|
|
|
and request.user |
|
|
and request.has_permission("view_content", topic) |
|
|
and request.has_permission("view_content", topic) |
|
|
and not request.has_permission("edit", topic) %} |
|
|
and not request.has_permission("edit", topic) %} |
|
|
<li> |
|
|
<li> |
|
|