Make BaseApi->checkAllowedScope into an object method
- It isn't called from static contexts anymore
This commit is contained in:
@@ -34,7 +34,7 @@ class Inbox extends DirectMessagesEndpoint
|
||||
{
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$this->checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
$pcid = Contact::getPublicIdByUserId($uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user