Merge pull request #2029 from lub/access-denied-status-code

throw 403 on access denied
This commit is contained in:
RainLoop Team 2021-04-22 18:54:41 +03:00 committed by GitHub
commit 14fe3a106e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);