diff --git a/src/router/index.ts b/src/router/index.ts index dcf35ef..8561cf3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -438,6 +438,13 @@ const router = createRouter({ meta: { type: "read", section: "settings", module: "template_usage" }, beforeEnter: [abilityAndNavUpdate], }, + { + path: "newsletter-config", + name: "admin-settings-newsletter_config", + component: () => import("@/views/admin/ViewSelect.vue"), + meta: { type: "read", section: "settings", module: "newsletter_config" }, + beforeEnter: [abilityAndNavUpdate], + }, ], }, { diff --git a/src/stores/admin/navigation.ts b/src/stores/admin/navigation.ts index e5add0b..b0af149 100644 --- a/src/stores/admin/navigation.ts +++ b/src/stores/admin/navigation.ts @@ -119,6 +119,9 @@ export const useNavigationStore = defineStore("navigation", { ...(abilityStore.can("read", "settings", "template_usage") ? [{ key: "template_usage", title: "Template-Verwendung" }] : []), + ...(abilityStore.can("read", "settings", "newsletter_config") + ? [{ key: "newsletter_config", title: "Newsletter Konfiguration" }] + : []), ], }, user: { diff --git a/src/types/permissionTypes.ts b/src/types/permissionTypes.ts index 34e2be9..95ea543 100644 --- a/src/types/permissionTypes.ts +++ b/src/types/permissionTypes.ts @@ -4,6 +4,7 @@ export type PermissionModule = | "member" | "calendar" | "newsletter" + | "newsletter_config" | "protocol" | "qualification" | "award" @@ -44,6 +45,7 @@ export const permissionModules: Array = [ "member", "calendar", "newsletter", + "newsletter_config", "protocol", "qualification", "award", @@ -71,6 +73,7 @@ export const sectionsAndModules: SectionsAndModulesObject = { "query_store", "template", "template_usage", + "newsletter_config", ], user: ["user", "role"], };