[Posts] HIde the pending info-notice when user can approve

This commit is contained in:
Earlopain 2024-01-14 12:19:17 +01:00
parent cd188a797f
commit bca7d2cdd0
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -34,7 +34,9 @@
<% if post.is_pending? %>
<div class="notice notice-pending" id="pending-approval-notice">
This post is pending approval. (<%= link_to "learn more", wiki_pages_path(title: "about:mod_queue") %>)
<% unless CurrentUser.can_approve_posts? %>
This post is pending approval. (<%= link_to "learn more", wiki_pages_path(title: "about:mod_queue") %>)
<% end %>
<%= render "post_disapprovals/counts", disapprovals: post.disapprovals, post: post %>