mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Merge pull request #2029 from lub/access-denied-status-code
throw 403 on access denied
This commit is contained in:
commit
14fe3a106e
1 changed files with 1 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ class Service
|
||||||
|
|
||||||
if ($bAdmin && !$this->oActions->Config()->Get('security', 'allow_admin_panel', true))
|
if ($bAdmin && !$this->oActions->Config()->Get('security', 'allow_admin_panel', true))
|
||||||
{
|
{
|
||||||
|
$this->oHttp->StatusHeader(403);
|
||||||
echo $this->oServiceActions->ErrorTemplates('Access Denied.',
|
echo $this->oServiceActions->ErrorTemplates('Access Denied.',
|
||||||
'Access to the RainLoop Webmail Admin Panel is not allowed!', true);
|
'Access to the RainLoop Webmail Admin Panel is not allowed!', true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue