* Fix bind user notice error.
This commit is contained in:
@@ -167,7 +167,7 @@ class gitlab extends control
|
||||
$users = $this->post->zentaoUsers;
|
||||
$gitlabNames = $this->post->gitlabUserNames;
|
||||
|
||||
$result = $this->gitlabZen->checkUserRepeat($users);
|
||||
$result = $this->gitlabZen->checkUserRepeat($users, $userPairs);
|
||||
if($result['result'] != 'success') return $this->send($result);
|
||||
|
||||
$this->gitlabZen->bindUsers($gitlabID, $users, $gitlabNames, $zentaoUsers);
|
||||
|
||||
@@ -16,10 +16,11 @@ class gitlabZen extends gitlab
|
||||
* Check bind user repeat.
|
||||
*
|
||||
* @param array $zentaoUsers
|
||||
* @param array $userPairs
|
||||
* @access protected
|
||||
* @return array
|
||||
*/
|
||||
protected function checkUserRepeat(array $zentaoUsers): array
|
||||
protected function checkUserRepeat(array $zentaoUsers, array $userPairs): array
|
||||
{
|
||||
$accountList = array();
|
||||
$repeatUsers = array();
|
||||
|
||||
Reference in New Issue
Block a user