Decouple UserType, add Role entity and management #6

Merged
ashan_rusiru merged 2 commits from change/newAuth into main 2026-10-19 12:57:59 +05:30

2 Commits

Author SHA1 Message Date
ashan_rusiru b6e35ba4e9 Merge branch 'main' into change/newAuth
CI/CD - erp auth / Build & Deploy (pull_request) Failing after 10m41s
2026-10-19 12:57:48 +05:30
Dhananjaya99 15832d1ae3 Decouple UserType, add Role entity and management
Removed all UserType logic and references, replacing them with a new Role model and management system. Introduced RoleManager service, repository, and API endpoint for role CRUD operations. Updated user flows and JWT claims to use RoleCode. Removed admin-only user CRUD endpoints. Updated DI, documentation, and error handling for consistency. Appsettings and DTOs now reflect the new role-based approach.
2026-10-19 12:57:07 +05:30