| Index: appengine/swarming/server/acl.py
|
| diff --git a/appengine/swarming/server/acl.py b/appengine/swarming/server/acl.py
|
| index 1504c605e638dba07ef1fd0c203921da202a9aca..35bff6030be23f6016baf02c761e0ef8b6493a61 100644
|
| --- a/appengine/swarming/server/acl.py
|
| +++ b/appengine/swarming/server/acl.py
|
| @@ -70,6 +70,11 @@ def is_bot_or_admin():
|
| return is_bot() or is_admin()
|
|
|
|
|
| +def can_schedule_high_priority_tasks():
|
| + """Returns True if the current user can schedule high priority tasks."""
|
| + return is_bot() or is_privileged_user()
|
| +
|
| +
|
| def get_user_type():
|
| """Returns a string describing the current access control for the user."""
|
| if is_admin():
|
|
|