[RSS Feed/News] REST API: alerts/{id}/mark and alerts/mark-all checks incorrect scope

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
The endpoints for marking alerts read (both individual, and all) try to use alert:read:write scope which is inalid

PHP:

Code:
protected function preDispatchController($action, ParameterBag $params)
{
   if (strtolower($action) == 'postmark')
   {
      $this->assertApiScopeByRequestMethod('alert:read');
   }
   else
   {
      $this->assertApiScopeByRequestMethod('alert');
   }

   $this->assertRegisteredUser();
}

and

PHP:

protected function...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom