PM-3755 Consume the oauth/token endpoint specifying an invalid workspace,

This commit is contained in:
Ronald Quenta
2015-10-09 14:09:18 -04:00
committed by Victor Saisa Lopez
parent 50f1c742dc
commit 4bfbc750f8
3 changed files with 25 additions and 19 deletions

View File

@@ -378,7 +378,6 @@ class WebApplication
}
Services\OAuth2\Server::setWorkspace(SYS_SYS);
Services\OAuth2\Server::loadPostEnvironment();
$this->rest->addAPIClass('\ProcessMaker\\Services\\OAuth2\\Server', 'oauth2');
return $uri;
@@ -495,6 +494,8 @@ class WebApplication
define("PATH_TEMPORAL", PATH_C . "dynEditor/");
define("PATH_DB", PATH_DATA . "sites" . PATH_SEP);
\Bootstrap::setLanguage();
\Bootstrap::LoadTranslationObject((defined("SYS_LANG"))? SYS_LANG : "en");
if (empty($workspace)) {