[Acloud] Check if user has access to the project on start
Cherry-pick cl/148795271
TEST: Manually test the google3 version. can't test the android tree
version untill b/35918788 is fixed
BUG:32411892
Change-Id: I8920db33f82d035218ef608962849628bbc8d9eb
diff --git a/public/acloud_main.py b/public/acloud_main.py
index 4469366..4a7a7b1 100755
--- a/public/acloud_main.py
+++ b/public/acloud_main.py
@@ -321,6 +321,9 @@
cfg = config_mgr.Load()
cfg.OverrideWithArgs(args)
+ # Check access.
+ device_driver.CheckAccess(cfg)
+
if args.which == CMD_CREATE:
report = device_driver.CreateAndroidVirtualDevices(
cfg,