chore: attachment validation fix (#2976)
- Attachment validation was supposed to affect the web widget channel only. But it was validating for all channels
This commit is contained in:
parent
7245e66b31
commit
8de4ce0037
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class Attachment < ApplicationRecord
|
|||
end
|
||||
|
||||
def acceptable_file
|
||||
should_validate_file?
|
||||
return unless should_validate_file?
|
||||
|
||||
errors.add(:file, 'is too big') if file.byte_size > 40.megabytes
|
||||
|
||||
|
|
Loading…
Reference in a new issue