Storing role in request user
The user in the request will now store his role, in order to show his permission rank.
readonly role: Role;const requestUser: RequestUser = { id: user.id, role: user.role };private createRequestUser(user: User): RequestUser {
const { id, role } = user;
return { id, role };
}return this.createRequestUser(user);Last updated