修改了老师访问学生页面的时候bug

This commit is contained in:
huangjingquan 2013-10-10 21:43:49 +08:00
parent 956aa3d0c1
commit ff21bca683
1 changed files with 4 additions and 1 deletions

View File

@ -14,10 +14,13 @@
</p>
<% 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 %>
<ul class="user_project_sort">
<% end %>
<ul class="user_project_sort">
<% for membership in @memberships %>
<li>