* fix bug for check project lib priv.

This commit is contained in:
wangyidong
2019-07-16 15:30:30 +08:00
parent 4cc3988012
commit 0f82741d36
+1 -1
View File
@@ -1145,7 +1145,7 @@ class docModel extends model
$projects = $mineProjects = $otherProjects = $closedProjects = array();
foreach($libs as $lib)
{
if(!$this->app->user->admin and !$this->checkPrivLib($lib)) continue;
if(!$this->app->user->admin and !$this->project->checkPriv($lib->id)) continue;
if($lib->status != 'done' and $lib->status != 'closed' and $lib->PM == $this->app->user->account)
{
$mineProjects[$lib->id] = $lib;