diff --git a/app/views/users/_l_course.html.erb b/app/views/users/_l_course.html.erb index d3f161a2..77ef8a36 100644 --- a/app/views/users/_l_course.html.erb +++ b/app/views/users/_l_course.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_l_project.html.erb b/app/views/users/_l_project.html.erb index 7f4d5411..ab2df884 100644 --- a/app/views/users/_l_project.html.erb +++ b/app/views/users/_l_project.html.erb @@ -99,7 +99,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_l_shixun.html.erb b/app/views/users/_l_shixun.html.erb index ea227d7b..df34c4b1 100644 --- a/app/views/users/_l_shixun.html.erb +++ b/app/views/users/_l_shixun.html.erb @@ -103,7 +103,7 @@ <% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>
diff --git a/app/views/users/_p_path.html.erb b/app/views/users/_p_path.html.erb index 8eefe060..d5a4e74c 100644 --- a/app/views/users/_p_path.html.erb +++ b/app/views/users/_p_path.html.erb @@ -88,7 +88,7 @@
<% else %>
- <% if @user == User.current %> + <% if @user == User.current && ['a_course', 'a_shixun', 'a_project', 'a_path'].include?(@type) %>