Refactoring: added controlled middleware and changed response class
This commit is contained in:
@@ -12,7 +12,7 @@ use Kanboard\Model\User as UserModel;
|
||||
* @package controller
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
class UserHelper extends Base
|
||||
class UserHelper extends BaseController
|
||||
{
|
||||
/**
|
||||
* User auto-completion (Ajax)
|
||||
@@ -39,4 +39,14 @@ class UserHelper extends Base
|
||||
$users = $this->projectPermission->findUsernames($project_id, $query);
|
||||
$this->response->json($users);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user is connected
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function status()
|
||||
{
|
||||
$this->response->text('OK');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user