Jake B.
Well-known member
- Affected version
- 2.2.4
The endpoints for marking alerts read (both individual, and all) try to use
and
Should be:
and
alert:read:write
scope which is inalid
PHP:
protected function preDispatchController($action, ParameterBag $params)
{
if (strtolower($action) == 'postmark')
{
$this->assertApiScopeByRequestMethod('alert:read');
}
else
{
$this->assertApiScopeByRequestMethod('alert');
}
$this->assertRegisteredUser();
}
and
PHP:
protected function preDispatchController($action, ParameterBag $params)
{
if (strtolower($action) == 'postmarkall')
{
$this->assertApiScopeByRequestMethod('alert:read');
}
else
{
$this->assertApiScopeByRequestMethod('alert');
}
$this->assertRegisteredUser();
}
Should be:
PHP:
protected function preDispatchController($action, ParameterBag $params)
{
if (strtolower($action) == 'postmark')
{
$this->assertApiScope('alert:read');
}
else
{
$this->assertApiScopeByRequestMethod('alert');
}
$this->assertRegisteredUser();
}
and
PHP:
protected function preDispatchController($action, ParameterBag $params)
{
if (strtolower($action) == 'postmarkall')
{
$this->assertApiScope('alert:read');
}
else
{
$this->assertApiScopeByRequestMethod('alert');
}
$this->assertRegisteredUser();
}