FIX: Only show "View Pending" link if the user can approve things

This commit is contained in:
Robin Ward 2015-08-27 13:15:37 -04:00
parent fc296d88dc
commit 74ca1189db

View File

@ -93,10 +93,12 @@
<div class="has-pending-posts">
{{{i18n "queue.has_pending_posts" count=model.pending_posts_count}}}
{{#link-to "queued-posts"}}
{{fa-icon "check"}}
{{i18n "queue.view_pending"}}
{{/link-to}}
{{#if currentUser.show_queued_posts}}
{{#link-to "queued-posts"}}
{{fa-icon "check"}}
{{i18n "queue.view_pending"}}
{{/link-to}}
{{/if}}
</div>
{{/if}}