ensures_checklist_feature_active.rb 394 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Concerns::EnsuresChecklistFeatureActive
  3. extend ActiveSupport::Concern
  4. included do
  5. def self.ensure_checklist_feature_active!
  6. raise Exceptions::Forbidden, 'The checklist feature is not active' if !Setting.get('checklist') # rubocop:disable Zammad/DetectTranslatableString
  7. end
  8. end
  9. end