Skip to content

Commit

Permalink
Merge pull request #1323 from daniel89fg/2143_permiso_exportar_asientos
Browse files Browse the repository at this point in the history
Tarea #2143 - Añadir permiso de exportar al asiento.
  • Loading branch information
NeoRazorX committed Mar 16, 2023
2 parents f62f611 + 49c14f0 commit 1008c33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Controller/EditAsiento.php
Expand Up @@ -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(),
Expand Down

0 comments on commit 1008c33

Please sign in to comment.