diff --git a/module/gitlab/control.php b/module/gitlab/control.php index d5d3e7ceef..50a2c8f94f 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -193,7 +193,7 @@ class gitlab extends control $user = $this->gitlab->apiGetCurrentUser($this->post->url, $this->post->token); if(!is_object($user)) return $this->send(array('result' => 'fail', 'message' => array('url' => array($this->lang->gitlab->hostError)))); - if(!isset($user->is_admin) or !$user->is_admin) return $this->send(array('result' => 'fail', 'message' => $this->lang->gitlab->hostError, 'locate' => 'parent')); + if(!isset($user->is_admin) or !$user->is_admin) return $this->send(array('result' => 'fail', 'message' => array('token' => array($this->lang->gitlab->tokenError)))); } /**