knowledge_base_permissions.rb 357 B

123456789
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory 'knowledge_base/permission', aliases: %i[knowledge_base_permission] do
  4. permissionable { create(:knowledge_base_category) }
  5. role { create(:role, permission_names: 'knowledge_base.editor') }
  6. access { 'editor' }
  7. end
  8. end