Merged in luisfernandosl/processmaker/3.0.1-GA (pull request #2477)

PM-1375 "En el Case Tracker no se visualizan los..." SOLVED
This commit is contained in:
Julio Cesar Laura Avendaño
2015-07-21 10:46:29 -04:00

View File

@@ -68,8 +68,15 @@ class pmDynaform
public function getCredentials()
{
$flagTrackerUser = false;
if (!isset($_SESSION['USER_LOGGED'])) {
return;
if (!preg_match("/^.*\/" . SYS_SKIN . "\/tracker\/.*$/", $_SERVER["REQUEST_URI"])) {
return;
}
$_SESSION["USER_LOGGED"] = "00000000000000000000000000000001";
$flagTrackerUser = true;
}
if ($this->credentials != null) {
return $this->credentials;
@@ -84,6 +91,11 @@ class pmDynaform
"clientId" => $a["client_id"],
"clientSecret" => $a["client_secret"]
);
if ($flagTrackerUser) {
unset($_SESSION["USER_LOGGED"]);
}
return $this->credentials;
}