mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Add LockedTopic exception to MailHandler (#38273).
Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@22159 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
79f0c64e29
commit
260ba2e04a
@ -24,6 +24,7 @@ class MailHandler < ActionMailer::Base
|
||||
class UnauthorizedAction < StandardError; end
|
||||
class NotAllowedInProject < UnauthorizedAction; end
|
||||
class InsufficientPermissions < UnauthorizedAction; end
|
||||
class LockedTopic < UnauthorizedAction; end
|
||||
class MissingInformation < StandardError; end
|
||||
class MissingContainer < StandardError; end
|
||||
|
||||
@ -301,7 +302,7 @@ class MailHandler < ActionMailer::Base
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user