#1301所有教师都能配置课程、发布作业

This commit is contained in:
sw 2014-10-08 11:56:41 +08:00
parent 2238c42826
commit ba93d07938
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
<td align="center"> <td align="center">
<div id="join_in_course"> <div id="join_in_course">
<% if User.current.logged? %> <% if User.current.logged? %>
<% if @course.teacher.id == User.current.id %> <% if User.current.allowed_to?(:as_teacher,@course) %>
<%= link_to l(:label_course_modify_settings), {:controller => 'courses', :action => 'settings', :id => @course} %> <%= link_to l(:label_course_modify_settings), {:controller => 'courses', :action => 'settings', :id => @course} %>
<%= render :partial => 'courses/set_course_time', :locals => {:course => @course} %> <%= render :partial => 'courses/set_course_time', :locals => {:course => @course} %>
<% else %> <% else %>