From 3b165c9f5fb4f98d16174c29262dc64b50fa4a56 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Thu, 23 May 2024 11:51:10 +0200 Subject: [PATCH] fmt --- backend/src/auth.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/auth.py b/backend/src/auth.py index 27974a0..c2df30b 100644 --- a/backend/src/auth.py +++ b/backend/src/auth.py @@ -118,10 +118,9 @@ async def auth_callback(code: str) -> RedirectResponse: # Check in payload if logged in user has the required permissions if ( - ("https://explorer.icare4cvd.eu" in access_payload["aud"] - and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"]) - or settings.dev_mode - ): + "https://explorer.icare4cvd.eu" in access_payload["aud"] + and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"] + ) or settings.dev_mode: # TODO: for LUCE blockchain: check if user email has a blockchain address # Where? Either a JSON file on the server, or in the triplestore # blockchain_addrs = json.load(settings.data_folder / "blockchain_addresses.json")