修改课程退出的权限

This commit is contained in:
huangjingquan 2013-09-30 10:30:43 +08:00
parent 9c0b68460a
commit 5c6bf7f9c8
1 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,9 @@
<div class="info_font" style=" word-wrap: break-word; word-break: break-all"> <div class="info_font" style=" word-wrap: break-word; word-break: break-all">
<%= @project.name %> <%= @project.name %>
</div> </div>
<% unless @course.teacher.id == User.current.id%>
<%= join_in_course(@project, User.current)%> <%= join_in_course(@project, User.current)%>
<% end %>
</td> </td>
</tr> </tr>
</table> </table>