mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 08:34:16 +01:00
chore: Refactor import services
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -27,7 +27,7 @@ namespace SP\Modules\Web\Controllers\User;
|
||||
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Application;
|
||||
use SP\DataModel\UserData;
|
||||
use SP\DataModel\User;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
@@ -88,7 +88,7 @@ abstract class UserViewBase extends ControllerBase
|
||||
|
||||
$user = $userId
|
||||
? $this->userService->getById($userId)
|
||||
: new UserData();
|
||||
: new User();
|
||||
|
||||
$this->view->assign('user', $user);
|
||||
$this->view->assign(
|
||||
|
||||
Reference in New Issue
Block a user