diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 279d7db0a6..f294025541 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -43,13 +43,6 @@ class gitlab extends control /* Admin user don't need bind. */ $gitlabList = $this->gitlab->getList($orderBy, $pager); - $myGitLabs = $this->gitlab->getGitLabListByAccount(); - - foreach($gitlabList as $gitlab) - { - $gitlab->isBindUser = true; - if(!$this->app->user->admin and !isset($myGitLabs[$gitlab->id])) $gitlab->isBindUser = false; - } $this->view->title = $this->lang->gitlab->common . $this->lang->colon . $this->lang->gitlab->browse; $this->view->gitlabList = $gitlabList; diff --git a/module/gitlab/view/browse.html.php b/module/gitlab/view/browse.html.php index f0b0640b83..930935e955 100644 --- a/module/gitlab/view/browse.html.php +++ b/module/gitlab/view/browse.html.php @@ -55,9 +55,8 @@ url, $gitlab->url, '_target');?> isBindUser ? true : false; common::printIcon('gitlab', 'edit', "gitlabID=$id", '', 'list', 'edit'); - echo common::buildIconButton('gitlab', 'bindUser', "gitlabID=$id", '', 'list', 'link', '', '', false, '', '', 0, $disabled); + echo common::buildIconButton('gitlab', 'bindUser', "gitlabID=$id", '', 'list', 'link'); common::printIcon('gitlab', 'delete', "gitlabID=$id", '', 'list', 'trash', 'hiddenwin'); ?>