Project

General

Profile

Feature #38273 » 2-locked_topic_error.patch

Felix Schäfer, 2023-02-13 15:40

View differences:

app/models/mail_handler.rb
class UnauthorizedAction < StandardError; end
class NotAllowedInProject < UnauthorizedAction; end
class InsufficientPermissions < UnauthorizedAction; end
class LockedTopic < UnauthorizedAction; end
class MissingInformation < StandardError; end
attr_reader :email, :user, :handler_options
......
add_attachments(reply)
reply
else
logger&.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
raise LockedTopic, "ignoring reply to a locked message [#{message.id} #{message.subject}]"
end
end
(2-2/2)