From ba93d07938edf96819a3321f3a0060f6190344b0 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 8 Oct 2014 11:56:41 +0800 Subject: [PATCH] =?UTF-8?q?#1301=E6=89=80=E6=9C=89=E6=95=99=E5=B8=88?= =?UTF-8?q?=E9=83=BD=E8=83=BD=E9=85=8D=E7=BD=AE=E8=AF=BE=E7=A8=8B=E3=80=81?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_courses.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 906574b9e..e3c137fb4 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -74,7 +74,7 @@
<% 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} %> <%= render :partial => 'courses/set_course_time', :locals => {:course => @course} %> <% else %>