Fix accesso a stampe indipendenti
This commit is contained in:
parent
2457bd4edd
commit
ff6358ba88
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue