1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-18 12:30:35 +01:00

Fix accesso a stampe indipendenti

This commit is contained in:
Thomas Zilio 2019-11-08 15:11:03 +01:00
parent 2457bd4edd
commit ff6358ba88

View File

@ -136,7 +136,7 @@ class Prints
]); ]);
Util\Query::setSegments(true); Util\Query::setSegments(true);
$has_access = database()->fetchNum($query) !== 0; $has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;
} }
if (empty($infos) || empty($infos['enabled']) || !Permissions::check([], false) || !$has_access) { if (empty($infos) || empty($infos['enabled']) || !Permissions::check([], false) || !$has_access) {