feat(3523): consulter la documentation d'export du parcours d'onboarding sans droit d'export CSV-Excel - #1362
Merged
Merged
Conversation
Collaborator
|
ça serait gentils si tu mets capture d'écran ou comment configurer la mode pour voir ou pas voir le message "Votre habilitation ne vous permet pas d’accéder à cette fonctionnalité" |
cesar-richard
approved these changes
Sep 25, 2026
Kyungtaek-KIM-APHP
approved these changes
Sep 25, 2026
Collaborator
Author
|
@Kyungtaek-KIM-APHP avec plaisir, voilà une capture :) |
aimen-brahmi-dev
force-pushed
the
feat/3523
branch
from
September 28, 2026 08:10
c3e93a9 to
c6f9aab
Compare
…ing sans droit d'export CSV-Excel
aimen-brahmi-dev
force-pushed
the
feat/3523
branch
from
September 28, 2026 08:24
c6f9aab to
321a8fc
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Objectif
Fixes https://gitlab.data.aphp.fr/ID/design-et-produit/ipa/cohort360/gestion-de-projet/-/work_items/3523
consulter la documentation d'export du parcours d'onboarding sans droit d'export CSV-Excel
Changements réalisés
canExportCsvXlsxau hookuseUserAccessespour avoir le resultat de droit d'export directment depuis ce hookImpacts
Front (Onboarding)
Tests réalisés
Unitaires
TEST EN LOCAL
Pour tester le droit il suffit d’exécuter ce script shell dans votre terminal
docker exec -i TON_CONTAINER python manage.py shell -c " from django.db import connection with connection.cursor() as cursor: cursor.execute(''' SELECT r.id, r.name, r.right_export_csv_xlsx_nominative FROM accesses_access a JOIN accesses_profile p ON p.id = a.profile_id JOIN accesses_role r ON r.id = a.role_id WHERE p.user_id = %s AND a.delete_datetime IS NULL ''', ['TON_USERNAME']) for row in cursor.fetchall(): print(row) "