Skip to content

Commit

Permalink
fix: check user right to export in xlsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Oct 16, 2024
1 parent 3f20875 commit 38f7c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin_cohort/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from celery.schedules import crontab

TITLE = "Portail/Cohort360 API"
VERSION = "3.23.15"
VERSION = "3.23.16"
AUTHOR = "Assistance Publique - Hopitaux de Paris, Département I&D"
DESCRIPTION_MD = f"""Supports the official **Cohort360** web app and **Portail**
Built by **{AUTHOR}**
Expand Down
2 changes: 1 addition & 1 deletion exports/services/rights_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_owner_rights(self, owner: User, output_format: str, nominative: bool,
data_permissions = accesses_service.get_data_reading_rights(user=owner,
target_perimeters_ids=','.join(map(str, perimeters_ids)))
self._check_rights(data_permissions=data_permissions, required_right=nominative and self.right_read_nomi or self.right_read_pseudo)
if output_format == "csv":
if output_format in ("csv", "xlsx"):
required_right = nominative and self.right_csv_nomi or self.right_csv_pseudo
else:
required_right = nominative and self.right_jupyter_nomi or self.right_jupyter_pseudo
Expand Down

0 comments on commit 38f7c6c

Please sign in to comment.