Added scope check
This commit is contained in:
@@ -39,7 +39,7 @@ abstract class ContactEndpoint extends BaseApi
|
||||
{
|
||||
parent::init($parameters);
|
||||
|
||||
if (!self::login()) {
|
||||
if (!self::login(self::SCOPE_READ)) {
|
||||
throw new HTTPException\UnauthorizedException();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user