mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
chore: Refactor import services
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -27,13 +27,13 @@ namespace SP\Modules\Web\Controllers\UserGroup;
|
||||
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Application;
|
||||
use SP\DataModel\UserGroupData;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
use SP\Domain\Core\Exceptions\QueryException;
|
||||
use SP\Domain\Core\Exceptions\SPException;
|
||||
use SP\Domain\CustomField\Ports\CustomFieldDataService;
|
||||
use SP\Domain\User\Models\UserGroup;
|
||||
use SP\Domain\User\Ports\UserGroupServiceInterface;
|
||||
use SP\Domain\User\Ports\UserServiceInterface;
|
||||
use SP\Infrastructure\Common\Repositories\NoSuchItemException;
|
||||
@@ -86,7 +86,7 @@ abstract class UserGroupViewBase extends ControllerBase
|
||||
|
||||
$userGroupData = $userGroupId
|
||||
? $this->userGroupService->getById($userGroupId)
|
||||
: new UserGroupData();
|
||||
: new UserGroup();
|
||||
|
||||
$this->view->assign('group', $userGroupData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user