system: put picture link back and fix type conversion issue #7907

This commit is contained in:
Franco Fichtner 2024-09-30 15:54:11 +02:00
parent 3d1cac71ce
commit 3fe3591f6b
2 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class DashboardController extends ApiControllerBase
$translations = (array)($metadataAttributes->translations ?? []);
if (!empty($link) && !$this->canAccessEndpoints([$link])) {
$link = null;
$link = '';
}
if (!$this->canAccessEndpoints($endpoints)) {

View File

@ -339,6 +339,7 @@
</openvpnservers>
<picture>
<filename>Picture.js</filename>
<link>/system_general.php</link>
<endpoints>
<endpoint>/api/core/dashboard/picture</endpoint>
</endpoints>