From 60e8bec22fa2f26406d00b7e76a274e3e2930c90 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 24 Nov 2022 10:10:31 +0800 Subject: [PATCH] * Fix feedback #1530. --- module/gitlab/control.php | 7 ------- module/gitlab/view/browse.html.php | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) 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'); ?>