From ff21bca683feb9229b656db8f63e7d7b6d5b50a9 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Thu, 10 Oct 2013 21:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E8=80=81=E5=B8=88?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E5=AD=A6=E7=94=9F=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_my_joinedcourse.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/users/_my_joinedcourse.html.erb b/app/views/users/_my_joinedcourse.html.erb index 4e2221189..4b8107440 100644 --- a/app/views/users/_my_joinedcourse.html.erb +++ b/app/views/users/_my_joinedcourse.html.erb @@ -14,10 +14,13 @@

<% end %> <% else %> + <% unless @user != User.current %> <% if User.current.user_extensions.identity == 0 %> <%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1}, :class => 'icon icon-add' %> <% end %> -