From 14845e6dc2ae9894987b8e06560693eb6c3ec201 Mon Sep 17 00:00:00 2001 From: takehiro otani Date: Thu, 29 Sep 2016 17:43:10 +0900 Subject: [PATCH] restapi should not use SESSION Because it does not consider the session when using the curl --- lib/functions/tlIssueTracker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/tlIssueTracker.class.php b/lib/functions/tlIssueTracker.class.php index 3999a0ccf2..15f1fee8c9 100644 --- a/lib/functions/tlIssueTracker.class.php +++ b/lib/functions/tlIssueTracker.class.php @@ -642,7 +642,7 @@ function getInterfaceObject($tprojectID) { $issueT = $this->getLinkedTo($tprojectID); $name = $issueT['issuetracker_name']; - $goodForSession = ($issueT['api'] != 'db'); + $goodForSession = ($issueT['api'] != 'db' && $issueT['api'] != 'rest'); if($goodForSession && isset($_SESSION['its'][$name])) {