Skip to content

Commit b913bf4

Browse files
authored
Merge pull request #616 from aldbr/main_FIX_summary-global
fix: job admins cannot get summaries including jobs from other users
2 parents 33489d7 + f3cc1fc commit b913bf4

File tree

1 file changed

+4
-1
lines changed
  • diracx-logic/src/diracx/logic/jobs

1 file changed

+4
-1
lines changed

diracx-logic/src/diracx/logic/jobs/query.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ async def summary(
8888
body: SummaryParams,
8989
):
9090
"""Show information suitable for plotting."""
91-
if not config.Operations["Defaults"].Services.JobMonitoring.GlobalJobsInfo:
91+
if (
92+
not config.Operations["Defaults"].Services.JobMonitoring.GlobalJobsInfo
93+
and preferred_username
94+
):
9295
body.search.append(
9396
{
9497
"parameter": "Owner",

0 commit comments

Comments
 (0)