Login hasn't got a return value

This commit is contained in:
Michael 2021-06-08 09:51:17 +00:00
parent 9720ee2c20
commit 5853fe562d
1 changed files with 1 additions and 3 deletions

View File

@ -39,9 +39,7 @@ abstract class ContactEndpoint extends BaseApi
{
parent::init($parameters);
if (!self::login(self::SCOPE_READ)) {
throw new HTTPException\UnauthorizedException();
}
self::login(self::SCOPE_READ);
}
/**