修改课程退出的权限
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">
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue