fix student can create course in teacher maiun course page

This commit is contained in:
xianbo 2014-04-02 15:13:34 +08:00
parent 6888e2bf01
commit 104eaf8c00
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<% else %>
<p>
<span><%=l(:label_course_doing)%>(<%=@memberships_doing.count%>)</span>
<%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1, :project_type => 1}, :class => 'icon icon-add' %>
<%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1, :project_type => 1}, :class => 'icon icon-add' if @user == User.current %>
</p>
<div>
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing}%>