diff --git a/IONOS b/IONOS index bdfd74fa9f566..4192e9c9b70de 160000 --- a/IONOS +++ b/IONOS @@ -1 +1 @@ -Subproject commit bdfd74fa9f566f10d455ff90c039286fb73ad7ac +Subproject commit 4192e9c9b70debc433fe1365827f683592e00e41 diff --git a/apps/settings/lib/Settings/Personal/ServerDevNotice.php b/apps/settings/lib/Settings/Personal/ServerDevNotice.php index 71c83740b9291..916d69e97d1da 100644 --- a/apps/settings/lib/Settings/Personal/ServerDevNotice.php +++ b/apps/settings/lib/Settings/Personal/ServerDevNotice.php @@ -15,6 +15,7 @@ use OCP\Settings\ISettings; use OCP\Support\Subscription\IRegistry; use OCP\Util; +use OCP\IConfig; class ServerDevNotice implements ISettings { @@ -25,6 +26,7 @@ public function __construct( private IUserSession $userSession, private IInitialState $initialState, private IURLGenerator $urlGenerator, + private IConfig $config, ) { } @@ -62,6 +64,10 @@ public function getSection(): ?string { return null; } + if ($this->config->getSystemValueBool('settings.hide-dev-notice')) { + return null; + } + return 'personal-info'; }