feat: enhance user service with role assignment and frontend scroll-area ref support

- Updated `users.service.ts` to assign user roles dynamically based on RBAC.
- Enhanced JWT generation to include the user's role in `auth.service.ts`.
- Added `viewportRef` prop support to `ScrollArea` component in the frontend for improved flexibility.
This commit is contained in:
Mathis HERRIOT
2026-01-29 14:43:01 +01:00
parent 209711195b
commit 27f8c7148a
3 changed files with 32 additions and 3 deletions

View File

@@ -207,6 +207,7 @@ export class AuthService {
const accessToken = await this.jwtService.generateJwt({
sub: user.uuid,
username: user.username,
role: user.role,
});
return {