Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: appengine/swarming/handlers_frontend.py

Issue 2463483002: swarming: allow privileged users to schedule high priority tasks (Closed)
Patch Set: allow privileged users to schedule high priority tasks Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/handlers_frontend.py
diff --git a/appengine/swarming/handlers_frontend.py b/appengine/swarming/handlers_frontend.py
index 17a30f977d5d1d8bbce6f248ad4d4cbc44af511f..fa81d0cf5ee265350902b06bfa3a6545e5ba2319 100644
--- a/appengine/swarming/handlers_frontend.py
+++ b/appengine/swarming/handlers_frontend.py
@@ -757,7 +757,8 @@ class TaskRetryHandler(BaseTaskHandler):
# Retrying a task is essentially reusing the same task request as the
# original one, but with new parameters.
new_request = task_request.new_request_clone(
- original_request, secret_bytes, allow_high_priority=acl.is_admin())
+ original_request, secret_bytes,
+ allow_high_priority=acl.can_schedule_high_priority_tasks())
result_summary = task_scheduler.schedule_request(
new_request, secret_bytes)
self.redirect('/user/task/%s' % result_summary.task_id)

Powered by Google App Engine
This is Rietveld 408576698