diff --git a/module/doc/model.php b/module/doc/model.php index e4b2f5cae0..1ad68f7ca3 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1605,7 +1605,7 @@ class docModel extends model ->leftjoin(TABLE_DOCLIB)->alias('t2')->on('t2.project=t1.id') ->where("CONCAT(',', t2.users, ',')")->like("%,{$this->app->user->account},%") ->andWhere('t1.vision')->eq($this->config->vision) - ->andWhere('t1.model')->ne('kanban') + ->beginIF($this->config->vision == 'rnd')->andWhere('model')->ne('kanban')->fi() ->andWhere('t1.deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('t1.id')->in($this->app->user->view->projects)->fi() ->fetchPairs(); @@ -1615,7 +1615,7 @@ class docModel extends model ->where('type')->eq('project') ->andWhere('vision')->eq($this->config->vision) ->andWhere('deleted')->eq(0) - ->andWhere('model')->ne('kanban') + ->beginIF($this->config->vision == 'rnd')->andWhere('model')->ne('kanban')->fi() ->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->projects)->fi() ->orderBy('order_asc') ->fetchAll('id');