Make BaseApi->checkAllowedScope into an object method

- It isn't called from static contexts anymore
This commit is contained in:
Hypolite Petovan
2023-10-11 09:30:42 -04:00
parent f70a64891c
commit 9e71610711
131 changed files with 152 additions and 152 deletions

View File

@@ -33,7 +33,7 @@ class Lists extends ContactEndpoint
{
protected function rawContent(array $request = [])
{
self::checkAllowedScope(self::SCOPE_READ);
$this->checkAllowedScope(self::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
// Expected value for user_id parameter: public/user contact id