* fix bug for check priv.

This commit is contained in:
wangyidong
2018-09-07 14:49:32 +08:00
parent 4fb50d5132
commit c0557029ab
+1 -1
View File
@@ -696,7 +696,7 @@ class blockModel extends model
$projects = $mineProjects = $otherProjects = $closedProjects = array();
foreach($projectList as $project)
{
if(!$this->app->user->admin and !$this->project->checkPriv($project->id)) continue;
if(!$this->app->user->admin and !$this->project->checkPriv($project)) continue;
if($project->status != 'done' and $project->status != 'closed' and $project->PM == $this->app->user->account)
{
$mineProjects[$project->id] = $project;