|
|
|
@ -223,11 +223,7 @@ class TagsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
if @obj && @object_flag == '6' && @obj.container.kind_of?(Course)
|
|
|
|
|
@course = @obj.container
|
|
|
|
|
all_attachments = @course.attachments.select{|attachment| attachment.is_public? ||
|
|
|
|
|
(attachment.container_type == "Course" && User.current.member_of_course?(@course))||
|
|
|
|
|
attachment.author_id == User.current.id
|
|
|
|
|
}
|
|
|
|
|
@tag_list = attachment_tag_list all_attachments
|
|
|
|
|
@tag_list = get_course_tag_list @course
|
|
|
|
|
end
|
|
|
|
|
# end
|
|
|
|
|
end
|
|
|
|
@ -274,11 +270,7 @@ class TagsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
if @obj && @obj_flag == '6' && @obj.container.kind_of?(Course)
|
|
|
|
|
@course = @obj.container
|
|
|
|
|
all_attachments = @course.attachments.select{|attachment| attachment.is_public? ||
|
|
|
|
|
(attachment.container_type == "Course" && User.current.member_of_course?(@course))||
|
|
|
|
|
attachment.author_id == User.current.id
|
|
|
|
|
}
|
|
|
|
|
@tag_list = attachment_tag_list all_attachments
|
|
|
|
|
@tag_list = @tag_list = get_course_tag_list @course
|
|
|
|
|
end
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.js
|
|
|
|
|