From 0f82741d3676aee6fdc23e2a6bfdab899a36c356 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 16 Jul 2019 15:30:30 +0800 Subject: [PATCH] * fix bug for check project lib priv. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index ef28dc72e0..a1ddcad557 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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;