From 29c18518e776fe5df6139382789ca277093de561 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 5 May 2016 15:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E6=9C=89=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=BE=E7=A8=8B=E5=86=85=E6=95=99=E8=BE=85?= =?UTF-8?q?=E5=92=8C=E5=AD=A6=E7=94=9F=E4=B8=8A=E4=BC=A0=E7=9A=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=9A=84TAG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_tag_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tags/_tag_list.html.erb b/app/views/tags/_tag_list.html.erb index c8e91c1a2..c0b4176c3 100644 --- a/app/views/tags/_tag_list.html.erb +++ b/app/views/tags/_tag_list.html.erb @@ -12,7 +12,7 @@ :taggable_id => obj.id, :taggable_type => object_flag %> <% end %> <% when '6' %> - <% if obj.author_id == User.current.id || User.current.admin?%> + <% if obj.author_id == User.current.id || User.current.admin? || (obj.container_type == 'Course' && User.current.allowed_to?(:as_teacher,obj.course)) %> <% select_tag_name ||= ""%> <%= link_to 'x', :controller => "tags", :action => "remove_tag_new", :remote => true, :tag_name => tag, :taggable_id => obj.id, :taggable_type => object_flag, :select_tag_name => select_tag_name %>