Use "checkAllowedScope" instead of "login"
This commit is contained in:
@@ -32,7 +32,7 @@ class VerifyCredentials extends BaseApi
|
||||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
self::login(self::SCOPE_READ);
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$application = self::getCurrentApplication();
|
||||
|
||||
if (empty($application['id'])) {
|
||||
|
||||
Reference in New Issue
Block a user