From e91846e20e317497d50225a535466785a4099d23 Mon Sep 17 00:00:00 2001 From: Jonathan Champ Date: Thu, 9 Nov 2023 11:49:15 -0500 Subject: [PATCH] webservice: always initialize the OAuth scopes --- classes/webservice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/webservice.php b/classes/webservice.php index 645dbc13..f32c6299 100644 --- a/classes/webservice.php +++ b/classes/webservice.php @@ -1084,6 +1084,8 @@ protected function get_access_token() { $expires = $cache->get('expires'); if (empty($token) || empty($expires) || time() >= $expires) { $token = $this->oauth($cache); + } else { + $this->scopes = $cache->get('scopes'); } return $token;