Put admin actions in trait (should be improved in future with own Class when isset($_GET['admin']))

This commit is contained in:
djmaze 2020-08-31 10:33:51 +02:00
parent 5009adfb60
commit 5e7b567e88
3 changed files with 1021 additions and 1011 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -99,6 +99,10 @@ class ServiceActions
}
else if (!empty($sAction))
{
if (0 === stripos($sAction, 'Admin') && 'AdminLogin' !== $sAction && 'AdminLogout' !== $sAction) {
$this->oActions->IsAdminLoggined();
}
$sMethodName = 'Do'.$sAction;
$this->Logger()->Write('Action: '.$sMethodName, \MailSo\Log\Enumerations\Type::NOTE, 'AJAX');