Commit 7ac2915f2a35c03b230e8bbaf9610a11ccd3c11f
1 parent
2b27251b
Exists in
master
and in
109 other branches
call initUserMgr for all WS + changes for WS with impex user
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
php/WebServices/WebServer.php
... | ... | @@ -119,7 +119,7 @@ class WebServer |
119 | 119 | */ |
120 | 120 | private function getTimeTablesCatalogsList($object) |
121 | 121 | { |
122 | - $this->initUserMgr(true); | |
122 | + $this->initUserMgr(); | |
123 | 123 | $dom = new DOMDocument("1.0"); |
124 | 124 | |
125 | 125 | if ($this->userID == 'impex') { |
... | ... | @@ -336,12 +336,12 @@ class WebServer |
336 | 336 | $this->throwError('workspaceError', 'No Amda Local DataBase Parameters description file for '.$this->userID); |
337 | 337 | |
338 | 338 | if (!copy($wsParamSrc, WSConfigClass::getWsResultDir().$wsParamDst)) |
339 | - $this->throwError('workspaceError', 'No User Defined Parameters description file for '.$this->userID); | |
339 | + return array('success' => true,'ParameterList' => | |
340 | + array("LocalDataBaseParameters" => WSConfigClass::getUrl().$locParamDst)); | |
340 | 341 | |
341 | 342 | return array('success' => true,'ParameterList' => |
342 | 343 | array("UserDefinedParameters" => WSConfigClass::getUrl().$wsParamDst, |
343 | - "LocalDataBaseParameters" => WSConfigClass::getUrl().$locParamDst, | |
344 | - "RemoteDataBaseParameters" => "not implemented")); | |
344 | + "LocalDataBaseParameters" => WSConfigClass::getUrl().$locParamDst)); | |
345 | 345 | } |
346 | 346 | |
347 | 347 | /* |
... | ... | @@ -572,7 +572,7 @@ class WebServer |
572 | 572 | $this->throwError("requestError", "Cannot parse request"); |
573 | 573 | } |
574 | 574 | |
575 | - $this->initUserMgr(true); | |
575 | + $this->initUserMgr(); | |
576 | 576 | |
577 | 577 | $ttID = $res['vars']['ttID']; |
578 | 578 | |
... | ... |