Skip to content

Commit 3de956c

Browse files
committed
fix: typo in auth for put data extractions api
1 parent 989230c commit 3de956c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

colandr/api/v1/routes/data_extractions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def put(self, id, json_data):
6868
)
6969

7070
review_id = extracted_data.review_id
71-
if not authz.user_is_allowed_for_review(current_user, id, if_frozen=False):
71+
if not authz.user_is_allowed_for_review(
72+
current_user, review_id, if_frozen=False
73+
):
7274
raise errors.ForbiddenError(
7375
message=f"{current_user} forbidden to modify extracted data for this study"
7476
)

docs/production-deployment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ docker compose -f compose.prod.yaml logs -f
221221

222222
# Update application
223223
git pull
224+
docker compose -f compose.prod.yaml pull
224225
docker compose -f compose.prod.yaml build
225226
docker compose -f compose.prod.yaml up -d
226227

0 commit comments

Comments
 (0)