throw 403 on access denied

This commit is contained in:
lub 2020-09-09 20:00:01 +02:00
parent 1979f84dab
commit 39f1a72da0

View file

@ -130,6 +130,7 @@ class Service
if ($bAdmin && !$this->oActions->Config()->Get('security', 'allow_admin_panel', true))
{
$this->oHttp->StatusHeader(403);
echo $this->oServiceActions->ErrorTemplates('Access Denied.',
'Access to the RainLoop Webmail Admin Panel is not allowed!', true);