* Modify page locate.

This commit is contained in:
caoyanyi
2022-06-16 12:04:06 +08:00
parent 9f7840a2d7
commit 8d16be79c4
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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
{
+4
View File
@@ -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);