去掉与我相关
This commit is contained in:
parent
9beaba0aac
commit
a3ce43c3d5
|
@ -175,19 +175,19 @@ class NewsController < ApplicationController
|
||||||
update_kindeditor_assets_owner ids,@news.id,OwnerTypeHelper::NEWS
|
update_kindeditor_assets_owner ids,@news.id,OwnerTypeHelper::NEWS
|
||||||
end
|
end
|
||||||
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add start
|
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add start
|
||||||
teachers = searchTeacherAndAssistant(@course)
|
# teachers = searchTeacherAndAssistant(@course)
|
||||||
for teacher in teachers
|
# for teacher in teachers
|
||||||
if(teacher.user_id != User.current.id)
|
# if(teacher.user_id != User.current.id)
|
||||||
notify = ActivityNotify.new()
|
# notify = ActivityNotify.new()
|
||||||
notify.activity_container_id = @course.id
|
# notify.activity_container_id = @course.id
|
||||||
notify.activity_container_type = 'Course'
|
# notify.activity_container_type = 'Course'
|
||||||
notify.activity_id = @news.id
|
# notify.activity_id = @news.id
|
||||||
notify.activity_type = 'News'
|
# notify.activity_type = 'News'
|
||||||
notify.notify_to = teacher.user_id
|
# notify.notify_to = teacher.user_id
|
||||||
notify.is_read = 0
|
# notify.is_read = 0
|
||||||
notify.save()
|
# notify.save()
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add end
|
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add end
|
||||||
render_attachment_warning_if_needed(@news)
|
render_attachment_warning_if_needed(@news)
|
||||||
flash[:notice] = l(:notice_successful_create)
|
flash[:notice] = l(:notice_successful_create)
|
||||||
|
|
Loading…
Reference in New Issue