mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-16 13:26:47 +01:00
chore: Remove unused methods, minor refactor.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -32,7 +32,7 @@ use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
use SP\Domain\Core\Exceptions\QueryException;
|
||||
use SP\Domain\Notification\Ports\NotificationServiceInterface;
|
||||
use SP\Html\DataGrid\DataGridInterface;
|
||||
use SP\Http\JsonResponse;
|
||||
use SP\Http\JsonMessage;
|
||||
use SP\Modules\Web\Controllers\ControllerBase;
|
||||
use SP\Modules\Web\Controllers\Helpers\Grid\NotificationGrid;
|
||||
use SP\Modules\Web\Controllers\Traits\JsonTrait;
|
||||
@@ -74,7 +74,7 @@ final class SearchController extends ControllerBase
|
||||
{
|
||||
if (!$this->acl->checkUserAccess(AclActionsInterface::NOTIFICATION_SEARCH)) {
|
||||
return $this->returnJsonResponse(
|
||||
JsonResponse::JSON_ERROR,
|
||||
JsonMessage::JSON_ERROR,
|
||||
__u('You don\'t have permission to do this operation')
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user