| Index: appengine/swarming/handlers_bot.py
|
| diff --git a/appengine/swarming/handlers_bot.py b/appengine/swarming/handlers_bot.py
|
| index a15ed7302dfdd1b862567273b1510b30e4e09956..4415f4689b504a37ef85e135d471106f4c480562 100644
|
| --- a/appengine/swarming/handlers_bot.py
|
| +++ b/appengine/swarming/handlers_bot.py
|
| @@ -151,7 +151,7 @@ class _BotAuthenticatingHandler(auth.AuthenticatingHandler):
|
|
|
| # TODO(vadimsh): Remove is_ip_whitelisted_machine check once all bots are
|
| # using auth for bootstrap and updating.
|
| - if (not acl.is_bootstrapper() and
|
| + if (not acl.can_create_bot() and
|
| not acl.is_ip_whitelisted_machine() and
|
| not (bot_id and bot_auth.is_authenticated_bot(bot_id, machine_type))):
|
| raise auth.AuthorizationError('Not allowed to access the bot code')
|
|
|