#15-messages #22
3 changed files with 13 additions and 0 deletions
|
@ -438,6 +438,13 @@ const router = createRouter({
|
||||||
meta: { type: "read", section: "settings", module: "template_usage" },
|
meta: { type: "read", section: "settings", module: "template_usage" },
|
||||||
beforeEnter: [abilityAndNavUpdate],
|
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],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -119,6 +119,9 @@ export const useNavigationStore = defineStore("navigation", {
|
||||||
...(abilityStore.can("read", "settings", "template_usage")
|
...(abilityStore.can("read", "settings", "template_usage")
|
||||||
? [{ key: "template_usage", title: "Template-Verwendung" }]
|
? [{ key: "template_usage", title: "Template-Verwendung" }]
|
||||||
: []),
|
: []),
|
||||||
|
...(abilityStore.can("read", "settings", "newsletter_config")
|
||||||
|
? [{ key: "newsletter_config", title: "Newsletter Konfiguration" }]
|
||||||
|
: []),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
|
|
|
@ -4,6 +4,7 @@ export type PermissionModule =
|
||||||
| "member"
|
| "member"
|
||||||
| "calendar"
|
| "calendar"
|
||||||
| "newsletter"
|
| "newsletter"
|
||||||
|
| "newsletter_config"
|
||||||
| "protocol"
|
| "protocol"
|
||||||
| "qualification"
|
| "qualification"
|
||||||
| "award"
|
| "award"
|
||||||
|
@ -44,6 +45,7 @@ export const permissionModules: Array<PermissionModule> = [
|
||||||
"member",
|
"member",
|
||||||
"calendar",
|
"calendar",
|
||||||
"newsletter",
|
"newsletter",
|
||||||
|
"newsletter_config",
|
||||||
"protocol",
|
"protocol",
|
||||||
"qualification",
|
"qualification",
|
||||||
"award",
|
"award",
|
||||||
|
@ -71,6 +73,7 @@ export const sectionsAndModules: SectionsAndModulesObject = {
|
||||||
"query_store",
|
"query_store",
|
||||||
"template",
|
"template",
|
||||||
"template_usage",
|
"template_usage",
|
||||||
|
"newsletter_config",
|
||||||
],
|
],
|
||||||
user: ["user", "role"],
|
user: ["user", "role"],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue