Feature #38273 » 2-locked_topic_error.patch
| 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
|
||
- « Previous
- 1
- 2
- Next »