Fix accesso a stampe indipendenti

This commit is contained in:
Thomas Zilio 2019-11-08 15:11:03 +01:00
parent 2457bd4edd
commit ff6358ba88
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class Prints
]);
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) {