base.rb 404 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Mutations
  3. class Ticket::Checklist::Base < BaseMutation
  4. include Gql::Concerns::EnsuresChecklistFeatureActive
  5. description 'Base class for checklist mutations.'
  6. def self.authorize(_obj, ctx)
  7. ensure_checklist_feature_active!
  8. ctx.current_user.permissions?(['ticket.agent'])
  9. end
  10. end
  11. end