mock-user.ts 357 B

12345678910
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { TicketView } from '#shared/entities/ticket/types.ts'
  3. import { mockPermissions } from './mock-permissions.ts'
  4. // If we change handling, we can improve it here in one function
  5. export const setupView = (view: TicketView) => {
  6. mockPermissions([`ticket.${view}`])
  7. }