Skip to content

Commit f12863f

Browse files
rjpowerclaude
andcommitted
[iris] Drop vestigial verified_user predicate on max_band cap
The max_band cap was gated on (auth.provider AND verified_user is not None), but the lookup already keys on job_id.user — verified_user was never consulted beyond the presence check. Drop the predicate so the cap fires whenever auth is configured, regardless of whether the request context happens to carry a verified identity. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 79a7fdb commit f12863f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/iris/src/iris/cluster/controller/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ def launch_job(
10641064
# here and skip the max_band cap below (the cap is meant to prevent
10651065
# unlisted users from punching up, not to re-check admins).
10661066
authorize(AuthzAction.MANAGE_BUDGETS)
1067-
elif self._auth.provider and verified_user is not None:
1067+
elif self._auth.provider:
10681068
user_budget = self._db.get_user_budget(job_id.user)
10691069
max_band = user_budget.max_band if user_budget is not None else self._user_budget_defaults.max_band
10701070
if band < max_band:

0 commit comments

Comments
 (0)