Skip to content

Commit

Permalink
feat(server): update droits téléchargement listes nominatives (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenfares authored Dec 14, 2023
1 parent 9f973ba commit db3a03a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/src/common/actions/helpers/permissions-organisme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function buildOrganismePermissions(
viewContacts: true,
infoTransmissionEffectifs: true,
indicateursEffectifs: sameRegion,
effectifsNominatifs: sameRegion ? ["rupturant"] : false,
effectifsNominatifs: sameRegion ? ["inscritSansContrat", "rupturant", "abandon"] : false,
manageEffectifs: false,
configurerModeTransmission: false,
};
Expand Down Expand Up @@ -107,7 +107,7 @@ export async function buildOrganismePermissions(
viewContacts: true,
infoTransmissionEffectifs: true,
indicateursEffectifs: sameAcademie,
effectifsNominatifs: false,
effectifsNominatifs: sameAcademie ? ["inscritSansContrat", "rupturant", "abandon"] : false,
manageEffectifs: false,
configurerModeTransmission: false,
};
Expand Down
6 changes: 3 additions & 3 deletions server/tests/integration/http/organisme.routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const permissionsByOrganisation: PermissionsTestConfig<PermissionsOrganisme> = {
configurerModeTransmission: false,
},
"DREETS même région": {
effectifsNominatifs: ["rupturant"],
effectifsNominatifs: ["inscritSansContrat", "rupturant", "abandon"],
indicateursEffectifs: true,
infoTransmissionEffectifs: true,
manageEffectifs: false,
Expand All @@ -107,7 +107,7 @@ const permissionsByOrganisation: PermissionsTestConfig<PermissionsOrganisme> = {
configurerModeTransmission: false,
},
"DRAAF même région": {
effectifsNominatifs: ["rupturant"],
effectifsNominatifs: ["inscritSansContrat", "rupturant", "abandon"],
indicateursEffectifs: true,
infoTransmissionEffectifs: true,
manageEffectifs: false,
Expand Down Expand Up @@ -171,7 +171,7 @@ const permissionsByOrganisation: PermissionsTestConfig<PermissionsOrganisme> = {
configurerModeTransmission: false,
},
"Académie même académie": {
effectifsNominatifs: false,
effectifsNominatifs: ["inscritSansContrat", "rupturant", "abandon"],
indicateursEffectifs: true,
infoTransmissionEffectifs: true,
manageEffectifs: false,
Expand Down

0 comments on commit db3a03a

Please sign in to comment.