Feature #38273 » 2-locked_topic_error.patch
app/models/mail_handler.rb | ||
---|---|---|
24 | 24 |
class UnauthorizedAction < StandardError; end |
25 | 25 |
class NotAllowedInProject < UnauthorizedAction; end |
26 | 26 |
class InsufficientPermissions < UnauthorizedAction; end |
27 |
class LockedTopic < UnauthorizedAction; end |
|
27 | 28 |
class MissingInformation < StandardError; end |
28 | 29 | |
29 | 30 |
attr_reader :email, :user, :handler_options |
... | ... | |
300 | 301 |
add_attachments(reply) |
301 | 302 |
reply |
302 | 303 |
else |
303 |
logger&.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
|
|
304 |
raise LockedTopic, "ignoring reply to a locked message [#{message.id} #{message.subject}]"
|
|
304 | 305 |
end |
305 | 306 |
end |
306 | 307 |
- « Previous
- 1
- 2
- Next »