Skip to content

Commit 4abf0e7

Browse files
author
Ron Lucke
authored
Merge pull request elan-ev#1364 from dennis531/maintenance
Add check for services in maintenance mode
2 parents fa989ea + c163cdd commit 4abf0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Models/REST/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public static function retrieveRESTservices($components, $service_url)
6565
if (($service_url['host'] == "localhost" || !preg_match('#https?://localhost.*#', $service->host))
6666
&& mb_strpos($service->host, $service_url['scheme']) === 0
6767
) {
68-
// check if service is wanted, active and online
68+
// check if service is wanted, active, online and not in maintenance
6969
if (isset($oc_services[$service->type])
70-
&& $service->online && $service->active
70+
&& $service->online && $service->active && !$service->maintenance
7171
) {
7272
// TODO: check duplicate entries for same service-type
7373
$services[$service->host . $service->path]

0 commit comments

Comments
 (0)