Пример реализации паттерна
Permissions Module
https://github.com/kaluga-astral/vite-boilerplate/tree/main/modules/permissions
Policies
Reasons
https://github.com/kaluga-astral/vite-boilerplate/blob/main/modules/permissions/domain/enums.ts
Rules
Использование rules
Использование permissions в UIStore
Подготовка данных
https://github.com/kaluga-astral/vite-boilerplate/blob/main/application/app.tsx#L44
Route Guards
https://github.com/kaluga-astral/vite-boilerplate/tree/main/modules/permissions/features/routeGuards