Skip to content

Commit

Permalink
fix(api):fix isGestionnaireOfMaisonMereAAP security resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Jul 15, 2024
1 parent 8681891 commit c28b821
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const isGestionnaireOfMaisonMereAAP =
if (
!(await isUserGestionnaireMaisonMereAAPOfMaisonMereAAP({
userRoles: context.auth.userInfo.realm_access?.roles || [],
maisonMereAAPId: args.maisonMereAAPId || root.maisonMereAAPId,
maisonMereAAPId: args.maisonMereAAPId || args.data?.maisonMereAAPId || root.maisonMereAAPId,
userKeycloakId: context.auth.userInfo.sub,
}))
) {
Expand Down

0 comments on commit c28b821

Please sign in to comment.