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:
parent
2457bd4edd
commit
ff6358ba88
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user