多重角色,教师/助教查看自己作为学生身份时提交的作品,追加附件重复显示

This commit is contained in:
cxt 2016-09-07 09:29:06 +08:00
parent 7123c66481
commit 5433e6d714
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
</div>
<div class="cl"></div>
<% end %>
<% if work.user == User.current %>
<% if work.user == User.current && !User.current.allowed_to?(:as_teacher, @homework.course) %>
<div class="resubAtt mb15">
<span class="resubTitle">追加修订附件</span>
</div>