File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
diracx-logic/src/diracx/logic/jobs
diracx-routers/src/diracx/routers/jobs Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ async def search(
84
84
async def summary (
85
85
config : Config ,
86
86
job_db : JobDB ,
87
- preferred_username : str ,
87
+ preferred_username : str | None ,
88
88
body : SummaryParams ,
89
89
):
90
90
"""Show information suitable for plotting."""
Original file line number Diff line number Diff line change @@ -304,9 +304,13 @@ async def summary(
304
304
"""
305
305
await check_permissions (action = ActionType .QUERY , job_db = job_db )
306
306
307
+ preferred_username : str | None = user_info .preferred_username
308
+ if JOB_ADMINISTRATOR in user_info .properties :
309
+ preferred_username = None
310
+
307
311
return await summary_bl (
308
312
config = config ,
309
313
job_db = job_db ,
310
- preferred_username = user_info . preferred_username ,
314
+ preferred_username = preferred_username ,
311
315
body = body ,
312
316
)
You can’t perform that action at this time.
0 commit comments