From 0427ae7f0c55e3c9980f93b39175279a05e16d68 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 26 Mar 2015 20:33:25 +0800 Subject: [PATCH] small fix for approve --- 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 ade17be..c1b858a 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? %> + <% if !b.rejected && !b.approved && user_can_approve? && !b.expired? %>
  • " data-id="<%= b.id.to_s %>"><%= t("news.approve") %>
  • <% end %> <% end %>