From 9e648724708ddbc1830bc68f28d55e4e55303167 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 9 Feb 2018 11:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/statistics/_statistics_list.html.erb | 2 +- app/views/statistics/show.html.erb | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/statistics/_statistics_list.html.erb b/app/views/statistics/_statistics_list.html.erb index 08bb363cd..98e95e415 100644 --- a/app/views/statistics/_statistics_list.html.erb +++ b/app/views/statistics/_statistics_list.html.erb @@ -1,7 +1,7 @@ <% @statistics.each do |statistic| %>
- <% if User.current.id == statistic.user_id || User.current.admin %> + <% if User.current.id == statistic.user_id || User.current.admin? %>