From 49c14f0fa9801f0d46984e5ae378348d0a0bb138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Fri, 10 Feb 2023 12:54:12 +0100 Subject: [PATCH] =?UTF-8?q?Tarea=20#2143=20-=20A=C3=B1adir=20permiso=20de?= =?UTF-8?q?=20exportar=20al=20asiento.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Controller/EditAsiento.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Controller/EditAsiento.php b/Core/Controller/EditAsiento.php index 8159e1fdd7..ba3ae7ac97 100644 --- a/Core/Controller/EditAsiento.php +++ b/Core/Controller/EditAsiento.php @@ -228,6 +228,12 @@ protected function execPreviousAction($action) protected function exportAction() { + if (false === $this->views[$this->active]->settings['btnPrint'] + || false === $this->permissions->allowExport) { + $this->toolBox()->i18nLog()->warning('no-print-permission'); + return; + } + $this->setTemplate(false); AsientoExport::show( $this->getModel(),