arbret/frontend/app
counterweight 21698203fe
refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission
Issue #2: The profile route used a custom role-based check instead
of the permission-based pattern used everywhere else.

Changes:
- Add MANAGE_OWN_PROFILE permission to backend Permission enum
- Add permission to ROLE_REGULAR role definition
- Update profile routes to use require_permission(MANAGE_OWN_PROFILE)
- Remove custom require_regular_user dependency
- Update frontend Permission constant and profile page
- Update invites page to use permission instead of role check
- Update profile tests with proper permission mocking

This ensures consistent authorization patterns across all routes.
2025-12-21 23:50:06 +01:00
..
admin refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
appointments refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
audit refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
booking refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
components Phase 5: Frontend Admin Page 2025-12-21 22:55:56 +01:00
generated Phase 5: Frontend Admin Page 2025-12-21 22:55:56 +01:00
hooks Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
invites refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission 2025-12-21 23:50:06 +01:00
login Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
profile refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission 2025-12-21 23:50:06 +01:00
signup Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
styles refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00
sum Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
utils Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
api.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
auth-context.tsx refactor(auth): unify authorization patterns with MANAGE_OWN_PROFILE permission 2025-12-21 23:50:06 +01:00
config.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
layout.tsx tests passing 2025-12-18 22:08:31 +01:00
page.test.tsx Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
page.tsx refactor(frontend): consolidate shared styles into centralized style system 2025-12-21 23:45:47 +01:00