mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Put admin actions in trait (should be improved in future with own Class when isset($_GET['admin']))
This commit is contained in:
parent
5009adfb60
commit
5e7b567e88
3 changed files with 1021 additions and 1011 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue