Login hasn't got a return value
This commit is contained in:
parent
9720ee2c20
commit
5853fe562d
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ abstract class ContactEndpoint extends BaseApi
|
||||||
{
|
{
|
||||||
parent::init($parameters);
|
parent::init($parameters);
|
||||||
|
|
||||||
if (!self::login(self::SCOPE_READ)) {
|
self::login(self::SCOPE_READ);
|
||||||
throw new HTTPException\UnauthorizedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue