From 155b9ebb072f1ab38a8a9112bf00f9408b3e6f00 Mon Sep 17 00:00:00 2001 From: nccu Date: Thu, 26 Mar 2015 20:50:56 +0800 Subject: [PATCH] approve btn fix --- app/views/admin/news/_index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/news/_index.html.erb b/app/views/admin/news/_index.html.erb index e06e356..4ccb6ed 100644 --- a/app/views/admin/news/_index.html.erb +++ b/app/views/admin/news/_index.html.erb @@ -87,7 +87,7 @@ <% end %> - <% if !b.rejected && !b.approved && user_can_approve? && !b.expired? && b.reapproval %> + <% if (!b.rejected && !b.approved && user_can_approve? && !b.expired?) || (b.rejected && !b.approved && user_can_approve? && !b.expired? && b.reapproval) %>
  • " data-id="<%= b.id.to_s %>"><%= t("news.approve") %>
  • <% end %> <% end %>