mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
fix bug where getUsersService is declared twice
This commit is contained in:
parent
b6be442fb9
commit
6d049185cf
|
|
@ -145,22 +145,7 @@ class BaseController
|
|||
|
||||
protected function getUserfieldsService()
|
||||
{
|
||||
if($this->userfieldsService == null)
|
||||
{
|
||||
$this->userfieldsService = new UserfieldsService();
|
||||
}
|
||||
return $this->userfieldsService;
|
||||
}
|
||||
|
||||
private $usersService = null;
|
||||
|
||||
protected function getUsersService()
|
||||
{
|
||||
if($this->usersService == null)
|
||||
{
|
||||
$this->usersService = new UsersService();
|
||||
}
|
||||
return $this->usersService;
|
||||
return UserfieldsService::getInstance();
|
||||
}
|
||||
|
||||
protected $AppContainer;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user