emailBeforeRouteEnterGuard.ts 377 B

12345678910111213
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useApplicationStore } from '#shared/stores/application.ts'
  3. export const emailBeforeRouteEnterGuard = () => {
  4. const application = useApplicationStore()
  5. if (application.config.system_online_service) {
  6. return '/guided-setup/manual/channels/email-pre-configured'
  7. }
  8. return true
  9. }