Skip to content

Commit ad7d213

Browse files
committed
Check if user is in either proposal or session for AuthZ
1 parent 4e26111 commit ad7d213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scaup/auth/micro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _check_perms(data_id: T, endpoint: str, token: str) -> T:
8181
"/permission/",
8282
endpoint,
8383
"/",
84-
str(data_id),
84+
str(data_id) if endpoint != "proposal" else str(data_id) + "/inSessions",
8585
]
8686
),
8787
headers={"Authorization": f"Bearer {token}"},

0 commit comments

Comments
 (0)