#12034 fixed empty screen in public link

This commit is contained in:
Daniel Cebrian 2024-01-03 17:58:23 +01:00
parent 4786a9260c
commit e99c7be6b8
1 changed files with 9 additions and 0 deletions

View File

@ -311,6 +311,15 @@ class Manager implements PublicLogin
if ($this->dashboardId !== 0) {
$this->dashboardFields = $this->get();
if (is_array($this->dashboardFields) === true && count($this->dashboardFields) === 0) {
db_pandora_audit(
AUDIT_LOG_HACK_ATTEMPT,
'Trying to access to dashboard that not exist'
);
include 'general/noaccess.php';
exit;
}
$this->cells = Cell::getCells($this->dashboardId);
}