* Resolve feedback #1277.

This commit is contained in:
zhouxin
2022-11-07 10:44:27 +08:00
parent e8b42deef3
commit d6a2fcd325
+3 -3
View File
@@ -590,9 +590,9 @@ class fileModel extends model
return in_array($productID, array_keys($grantProducts));
}
if(isset($projectID) and strpos(",{$this->app->user->view->projects},", ",$projectID,") === false) return false;
if(isset($productID) and strpos(",{$this->app->user->view->products},", ",$productID,") === false) return false;
if(isset($executionID) and strpos(",{$this->app->user->view->sprints},", ",$executionID,") === false) return false;
if(!empty($projectID) and strpos(",{$this->app->user->view->projects},", ",$projectID,") === false) return false;
if(!empty($productID) and strpos(",{$this->app->user->view->products},", ",$productID,") === false) return false;
if(!empty($executionID) and strpos(",{$this->app->user->view->sprints},", ",$executionID,") === false) return false;
return true;
}