From deaf1c78d1fa9463c75af90a01b674dc31acc2d4 Mon Sep 17 00:00:00 2001
From: cxt <853663049@qq.com>
Date: Fri, 12 Apr 2019 11:01:54 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/_l_course.html.erb | 2 +-
app/views/users/_l_project.html.erb | 2 +-
app/views/users/_l_shixun.html.erb | 2 +-
app/views/users/_p_path.html.erb | 3 +--
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb
index 95e8a60d..d3f161a2 100644
--- a/app/views/users/_l_course.html.erb
+++ b/app/views/users/_l_course.html.erb
@@ -99,7 +99,7 @@
<% else %>
- <% if @new_icon %>
+ <% if @user == User.current %>
diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb
index 0ca840bc..7f4d5411 100644
--- a/app/views/users/_l_project.html.erb
+++ b/app/views/users/_l_project.html.erb
@@ -99,7 +99,7 @@
<% else %>
- <% if @new_icon %>
+ <% if @user == User.current %>
diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb
index 0a01b9a6..ea227d7b 100644
--- a/app/views/users/_l_shixun.html.erb
+++ b/app/views/users/_l_shixun.html.erb
@@ -103,7 +103,7 @@
<% else %>
- <% if @new_icon %>
+ <% if @user == User.current %>
diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb
index 9700151d..8eefe060 100644
--- a/app/views/users/_p_path.html.erb
+++ b/app/views/users/_p_path.html.erb
@@ -88,7 +88,7 @@
<% else %>
- <% if @new_icon %>
+ <% if @user == User.current %>
@@ -114,7 +114,6 @@
<% end %>
-
<%= render :partial => "welcome/no_data" %>
<% end %>