Skip to content

Commit fd64c0f

Browse files
committed
Fixed an error
1 parent b6c7734 commit fd64c0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public function __construct(array $config, $userEmail='')
4242
$this->client->setDeveloperKey(array_get($config, 'developer_key', ''));
4343

4444
// auth for service account
45-
$this->auth($userEmail);
45+
if (array_get($config, 'service.enable', false)) {
46+
$this->auth($userEmail);
47+
}
4648
}
4749

4850
/**

0 commit comments

Comments
 (0)