mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
allowAdminPanel => adminAllowed
This commit is contained in:
parent
2a01d8c991
commit
c1dd6edc28
4 changed files with 5 additions and 6 deletions
|
|
@ -104,8 +104,7 @@ class Service
|
|||
$sAdminPanelHost = $oConfig->Get('security', 'admin_panel_host', '');
|
||||
if (empty($sAdminPanelHost))
|
||||
{
|
||||
$sAdminPanelKey = \strtolower($oConfig->Get('security', 'admin_panel_key', 'admin'));
|
||||
$bAdmin = !empty($aPaths[0]) && \strtolower($aPaths[0]) === $sAdminPanelKey;
|
||||
$bAdmin = !empty($aPaths[0]) && ($oConfig->Get('security', 'admin_panel_key', '') ?: 'admin') === $aPaths[0];
|
||||
}
|
||||
else if (empty($aPaths[0]) &&
|
||||
\mb_strtolower($sAdminPanelHost) === \mb_strtolower($this->oHttp->GetHost()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue