修改课程退出的权限
This commit is contained in:
parent
9c0b68460a
commit
5c6bf7f9c8
|
@ -43,7 +43,9 @@
|
|||
<div class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
||||
<%= @project.name %>
|
||||
</div>
|
||||
<% unless @course.teacher.id == User.current.id%>
|
||||
<%= join_in_course(@project, User.current)%>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue