From 5ee1bfc7c3a60ed1e3626c5bb1b7fe607e068a3e Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 21 Mar 2024 10:28:20 +0800 Subject: [PATCH] + Adjust notice in bind user. --- module/gitfox/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gitfox/control.php b/module/gitfox/control.php index b3f479bbaa..32bb5754e1 100644 --- a/module/gitfox/control.php +++ b/module/gitfox/control.php @@ -135,7 +135,7 @@ class gitfox extends control $userPairs = $this->loadModel('user')->getPairs('noclosed|noletter'); $user = $this->gitfox->apiGetCurrentUser($gitfoxID); - if(!isset($user->admin) or !$user->admin) return $this->send(array('result' => 'fail', 'message' => $this->lang->gitfox->tokenLimit, $this->locate($this->createLink('gitfox', 'edit', array('gitfoxID' => $gitfoxID))))); + if(!isset($user->admin) or !$user->admin) return $this->sendError($this->lang->gitfox->tokenLimit, $this->createLink('gitfox', 'edit', array('gitfoxID' => $gitfoxID))); $zentaoUsers = $this->dao->select('account,email,realname')->from(TABLE_USER)->where('deleted')->eq('0')->fetchAll('account');