mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
fix indention of lines
This commit is contained in:
parent
f4b8eb05b7
commit
7202d85e55
|
@ -2619,17 +2619,17 @@ class RestapiAuth { /* {{{ */
|
||||||
// $this->container has the DI
|
// $this->container has the DI
|
||||||
$dms = $this->container->dms;
|
$dms = $this->container->dms;
|
||||||
$settings = $this->container->config;
|
$settings = $this->container->config;
|
||||||
$logger = $this->container->logger;
|
$logger = $this->container->logger;
|
||||||
$userobj = null;
|
$userobj = null;
|
||||||
if($this->container->has('userobj'))
|
if($this->container->has('userobj'))
|
||||||
$userobj = $this->container->userobj;
|
$userobj = $this->container->userobj;
|
||||||
|
|
||||||
if($userobj) {
|
if($userobj) {
|
||||||
$response = $next($request, $response);
|
$response = $next($request, $response);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
$logger->log("Invoke middleware for method ".$request->getMethod()." on '".$request->getUri()->getPath()."'", PEAR_LOG_INFO);
|
$logger->log("Invoke middleware for method ".$request->getMethod()." on '".$request->getUri()->getPath()."'", PEAR_LOG_INFO);
|
||||||
$logger->log("Access with method ".$request->getMethod()." on '".$request->getUri()->getPath()."'".(isset($this->container->environment['HTTP_ORIGIN']) ? " with origin ".$this->container->environment['HTTP_ORIGIN'] : ''), PEAR_LOG_INFO);
|
$logger->log("Access with method ".$request->getMethod()." on '".$request->getUri()->getPath()."'".(isset($this->container->environment['HTTP_ORIGIN']) ? " with origin ".$this->container->environment['HTTP_ORIGIN'] : ''), PEAR_LOG_INFO);
|
||||||
if($settings->_apiOrigin && isset($this->container->environment['HTTP_ORIGIN'])) {
|
if($settings->_apiOrigin && isset($this->container->environment['HTTP_ORIGIN'])) {
|
||||||
$logger->log("Checking origin", PEAR_LOG_DEBUG);
|
$logger->log("Checking origin", PEAR_LOG_DEBUG);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user