mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 02:46:56 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Request handling rewritten to make it testable * [MOD] Code refactoring
This commit is contained in:
@@ -37,7 +37,6 @@ use SP\Providers\Log\RemoteSyslogHandler;
|
||||
use SP\Providers\Log\SyslogHandler;
|
||||
use SP\Providers\Mail\MailHandler;
|
||||
use SP\Providers\Notification\NotificationHandler;
|
||||
use SP\Util\Checks;
|
||||
use SP\Util\Util;
|
||||
|
||||
/**
|
||||
@@ -106,7 +105,7 @@ abstract class ModuleBase
|
||||
if ($this->configData->isMaintenance()) {
|
||||
Bootstrap::$LOCK = Util::getAppLock();
|
||||
|
||||
return (Checks::isAjax($this->router)
|
||||
return ($this->request->isAjax()
|
||||
|| (Bootstrap::$LOCK !== false
|
||||
&& Bootstrap::$LOCK->userId > 0
|
||||
&& $context->isLoggedIn()
|
||||
|
||||
Reference in New Issue
Block a user