diff --git a/module/execution/view/importtask.html.php b/module/execution/view/importtask.html.php index 7302c74be1..a818ff5e31 100644 --- a/module/execution/view/importtask.html.php +++ b/module/execution/view/importtask.html.php @@ -71,7 +71,7 @@ { if(common::hasPriv('story', 'view')) { - echo html::a($this->createLink('story', 'view', "storyid=$task->storyID"), $task->storyTitle); + echo html::a($this->createLink('story', 'view', "storyid=$task->storyID"), $task->storyTitle, '', "class='preview'", true, isonlybody()); } else { diff --git a/module/repo/model.php b/module/repo/model.php index d00c722b56..082559ea2b 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -552,6 +552,10 @@ class repoModel extends model ->andWhere('deleted')->eq('0') ->orderBy('id_desc') ->fetchAll(); + foreach($matchedRepos as $key => $repo) + { + if(!$this->checkPriv($repo)) unset($matchedRepos[$key]); + } if(empty($matchedRepos)) return array('status' => 'fail', 'message' => 'No matched gitlab.'); return array('status' => 'success', 'repos' => $matchedRepos);