permission module name change

This commit is contained in:
Julian Krauser 2024-09-16 12:37:18 +02:00
parent b0ea9d13e7
commit 6f13cdc297

View file

@ -1,7 +1,7 @@
export type PermissionSection = "club" | "settings" | "user"; export type PermissionSection = "club" | "settings" | "user";
export type PermissionModule = export type PermissionModule =
| "members" | "member"
| "calendar" | "calendar"
| "newsletter" | "newsletter"
| "protocoll" | "protocoll"
@ -36,7 +36,7 @@ export type SectionsAndModulesObject = {
export const permissionSections: Array<PermissionSection> = ["club", "settings", "user"]; export const permissionSections: Array<PermissionSection> = ["club", "settings", "user"];
export const permissionModules: Array<PermissionModule> = [ export const permissionModules: Array<PermissionModule> = [
"members", "member",
"calendar", "calendar",
"newsletter", "newsletter",
"protocoll", "protocoll",
@ -50,7 +50,7 @@ export const permissionModules: Array<PermissionModule> = [
]; ];
export const permissionTypes: Array<PermissionType> = ["read", "create", "update", "delete"]; export const permissionTypes: Array<PermissionType> = ["read", "create", "update", "delete"];
export const sectionsAndModules: SectionsAndModulesObject = { export const sectionsAndModules: SectionsAndModulesObject = {
club: ["members", "calendar", "newsletter", "protocoll"], club: ["member", "calendar", "newsletter", "protocoll"],
settings: ["qualification", "award", "executive_position", "communication", "membership_status"], settings: ["qualification", "award", "executive_position", "communication", "membership_status"],
user: ["user", "role"], user: ["user", "role"],
}; };