cf10dbd91e
Re-applies the storage limit from #2713 (reverted in #2715) with an exception for staff identities so our own account isn't blocked.
10 lines
224 B
Ruby
10 lines
224 B
Ruby
module Card::StorageLimited::Creation
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
include Card::StorageLimited
|
|
|
|
before_action :ensure_within_storage_limit, only: :create, if: -> { request.format.json? }
|
|
end
|
|
end
|