We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c983e44 + f4351e6 commit 888d644Copy full SHA for 888d644
diracx-routers/src/diracx/routers/jobs/access_policies.py
@@ -6,7 +6,7 @@
6
7
from fastapi import Depends, HTTPException, status
8
9
-from diracx.core.properties import JOB_ADMINISTRATOR, NORMAL_USER
+from diracx.core.properties import GENERIC_PILOT, JOB_ADMINISTRATOR, NORMAL_USER
10
from diracx.db.sql import JobDB, SandboxMetadataDB
11
from diracx.routers.access_policies import BaseAccessPolicy
12
from diracx.routers.utils.users import AuthorizedUserInfo
@@ -61,6 +61,10 @@ async def policy(
61
raise HTTPException(status.HTTP_403_FORBIDDEN)
62
return
63
64
+ if GENERIC_PILOT in user_info.properties and action == ActionType.MANAGE:
65
+ # Authorize pilots
66
+ return
67
+
68
if JOB_ADMINISTRATOR in user_info.properties:
69
70
0 commit comments