mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-31 03:52:01 +08: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
File diff suppressed because it is too large
Load diff
1015
rainloop/v/0.0.0/app/libraries/RainLoop/Actions/Admin.php
Normal file
1015
rainloop/v/0.0.0/app/libraries/RainLoop/Actions/Admin.php
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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…
Reference in a new issue