Browse Source

#963: For security reasons, "Portal users" are no longer allowed to use the REST/JSON API.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3627 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 năm trước cách đây
mục cha
commit
cf1510c7f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      webservices/rest.php

+ 1 - 1
webservices/rest.php

@@ -96,7 +96,7 @@ try
 {
 	utils::UseParamFile();
 
-	$iRet = LoginWebPage::DoLogin(false, true, LoginWebPage::EXIT_RETURN);
+	$iRet = LoginWebPage::DoLogin(false, false, LoginWebPage::EXIT_RETURN); // Starting with iTop 2.2.0 portal users are no longer allowed to access the REST/JSON API
 	if ($iRet != LoginWebPage::EXIT_CODE_OK)
 	{
 		switch($iRet)