Spaces:
Paused

CognxSafeTrack commited on
Commit
803f4c5
·
1 Parent(s): 1ef1cda

feat: implement RoleGuard for centralized authorization

Browse files

- Created reusable RoleGuard component
- Refactored MainLayout to use RoleGuard for admin features
- Reduced manual role checks in the UI layout

2 files changed +56 -2
Files changed (2)
apps/admin/src/components/RoleGuard.tsxAdded+52
apps/admin/src/components/layouts/MainLayout.tsx+4-2