* [misc] remove unused code.

This commit is contained in:
sunguangming
2025-07-07 08:05:02 +00:00
parent 9c42022cfe
commit 963b716aae
+1 -1
View File
@@ -224,7 +224,7 @@ class projectModel extends model
}
/* 项目模板不校验访问权限。 */
$isTpl = $this->dao->select('isTpl')->from(TABLE_PROJECT)->where('id')->eq($projectID)->andWhere('id')->in($this->app->user->view->projects)->fetch('isTpl');
$isTpl = $this->dao->select('isTpl')->from(TABLE_PROJECT)->where('id')->eq($projectID)->fetch('isTpl');
if(empty($isTpl) && !isset($projects[$projectID]))
{
if($projectID && strpos(",{$this->app->user->view->projects},", ",{$projectID},") === false && !empty($projects))