* Modify page locate.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user