mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-21 07:46:50 +01:00
* [FIX] Fixed issue when displaying custom field of type password
* [MOD] Code refactoring * [ADD] Unit tests. Work in progress
This commit is contained in:
@@ -26,7 +26,7 @@ namespace SP\Modules\Web\Controllers;
|
||||
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use SP\Core\Acl\ActionsInterface;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\UnauthorizedPageException;
|
||||
use SP\Core\Context\SessionContext;
|
||||
use SP\Core\Events\Event;
|
||||
@@ -98,7 +98,7 @@ class ConfigImportController extends SimpleControllerBase
|
||||
{
|
||||
try {
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::IMPORT_CONFIG);
|
||||
$this->checkAccess(Acl::IMPORT_CONFIG);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user