Skip to content

Commit a4c6778

Browse files
committed
Use _config instead of _conf
1 parent 75bd8ae commit a4c6778

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/blueapi/service/authorization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def require_submit_task(self, instrument_session: str, token: str):
6666
raise ValueError("Invalid instrument session")
6767

6868
if not await self._call_opa(
69-
self._conf.submit_task_check,
69+
self._config.submit_task_check,
7070
{
7171
"token": token,
7272
"proposal": int(match["proposal"]),
@@ -76,7 +76,7 @@ async def require_submit_task(self, instrument_session: str, token: str):
7676
raise HTTPException(status_code=HTTP_403_FORBIDDEN)
7777

7878
async def is_admin(self, token: str) -> bool:
79-
return await self._call_opa(self._conf.admin_check, {"token": token})
79+
return await self._call_opa(self._config.admin_check, {"token": token})
8080

8181

8282
class OpaUserClient:

0 commit comments

Comments
 (0)