帖子的移动

issues25489
cxt 5 years ago
parent d2e6398133
commit 94bd184658

@ -103,7 +103,7 @@ class MessagesController < ApplicationController
return normal_status(403, "您没有权限进行该操作") if current_user != @message.author && !current_user.teacher_of_course?(@message.board.course)
begin
board_id = @course.boards.find_by(id: params[:select_board_id])
board_id = @message.board&.course&.boards.find_by(id: params[:select_board_id])
email_notify = @message.email_notify ? 1 : @message.board&.course.email_notify && params[:email_notify]
send_email = !@message.email_notify && email_notify

Loading…
Cancel
Save