Add SUPERADMIN role and update user handling logic
Introduces a new SUPERADMIN role in the Role enum. Updates UserService to handle SUPERADMIN users by setting firstLogin to false upon creation and excluding SUPERADMIN users from the getAllUsers() result. Also removes some fields from the mapToResponseDTO method.PRE-PRODUCTION-2026-NAEEM
parent
ff8cd6044a
commit
73ab08e9c5
@ -1,5 +1,5 @@
|
|||||||
package com.mfsys.aconnect.usermanagement.model;
|
package com.mfsys.aconnect.usermanagement.model;
|
||||||
|
|
||||||
public enum Role {
|
public enum Role {
|
||||||
USER, ADMIN
|
USER, ADMIN, SUPERADMIN
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue