Browse Source

Update BaseController.class.php

star7th 5 years ago
parent
commit
5c09703edc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      server/Application/Api/Controller/BaseController.class.php

+ 4 - 1
server/Application/Api/Controller/BaseController.class.php

@@ -187,7 +187,10 @@ class BaseController extends Controller {
 	//判断某用户是否有项目访问权限(公开项目的话所有人可访问,私有项目则项目成员、项目创建者和访问密码输入者可访问)
 	protected function checkItemVisit($uid , $item_id, $refer_url= ''){
 
-
+		if (session("visit_item_".$item_id)) {
+			return true;
+		}
+		
 		if ($this->checkItemCreator($uid , $item_id)) {
 			session("visit_item_".$item_id , 1 );
 			return true;