FEATURE: new 'allow_staff_to_upload_any_file_in_pm' site setting

This commit is contained in:
Régis Hanol
2017-06-12 22:41:29 +02:00
parent 16475bae89
commit 54e8fb0d89
11 changed files with 71 additions and 28 deletions

View File

@@ -13,8 +13,9 @@ class Upload < ActiveRecord::Base
has_many :optimized_images, dependent: :destroy
attr_accessor :is_attachment_for_group_message
attr_accessor :for_group_message
attr_accessor :for_theme
attr_accessor :for_private_message
validates_presence_of :filesize
validates_presence_of :original_filename