mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 20:10:18 +08:00
FIX: Only show "View Pending" link if the user can approve things
This commit is contained in:
parent
fc296d88dc
commit
74ca1189db
@ -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}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user