feat: home page per role — selector in RolesTab, saved to DB and applied on login

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 10:42:05 +03:00
parent d26ad30433
commit 80429cd52a
2 changed files with 73 additions and 2 deletions

View File

@@ -309,7 +309,7 @@ export const api = {
'GET', `/api/hotels/${slug}/role-permissions`),
save: (slug: string, roleKey: string, data: {
name: string; color: string; isSystem: boolean; permissions: Record<string, boolean>
name: string; color: string; isSystem: boolean; permissions: Record<string, boolean>; homePage?: string | null
}) =>
req<import('../contexts/RolePermissionsContext').SavedRolePermission>(
'PUT', `/api/hotels/${slug}/role-permissions/${roleKey}`, data),