From 6bd20ecaaf0dc59f085dc8a8cc7d0392e8483c8f Mon Sep 17 00:00:00 2001 From: lichengjun Date: Fri, 20 Aug 2021 01:28:54 +0000 Subject: [PATCH] * Adjust GitLab admin token fix bug. --- module/gitlab/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 2053da23ff..99f19d7d54 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -33,7 +33,7 @@ class gitlab extends control foreach($gitlabList as $gitlab) { $token = $this->gitlab->apiGetCurrentUser($gitlab->url,$gitlab->token); - $gitlab->isAdminToken = $token->is_admin; + $gitlab->isAdminToken = !isset($token->is_admin) ? $token->is_admin : 0; } $this->view->title = $this->lang->gitlab->common . $this->lang->colon . $this->lang->gitlab->browse;