Files
fizzy/saas/app/controllers/concerns/card/storage_limited/creation.rb
T
Jorge Manrubia cf10dbd91e Add 1GB storage cap with staff bypass (#2729)
Re-applies the storage limit from #2713 (reverted in #2715) with an
exception for staff identities so our own account isn't blocked.
2026-03-19 12:38:39 +01:00

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