Skip to content

Commit

Permalink
fix: affichage des noms dans l'admin
Browse files Browse the repository at this point in the history
  • Loading branch information
remy-auricoste committed Apr 30, 2024
1 parent 5e64630 commit da174f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/src/http/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ export default (server: Server) => {
const opcoOrAdminRole = await RoleManagement.findOne({
user_id: requestUser._id,
authorized_type: { $in: [AccessEntityType.ADMIN, AccessEntityType.OPCO] },
$expr: { $eq: [{ $arrayElemAt: ["$status.status", -1] }, AccessStatus.GRANTED] },
}).lean()
if (opcoOrAdminRole && getLastStatusEvent(opcoOrAdminRole.status)?.status === AccessStatus.GRANTED) {
const userIds = userRecruteur.status.flatMap(({ user }) => (user ? [user] : []))
Expand Down

0 comments on commit da174f6

Please sign in to comment.