Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IONOS
6 changes: 6 additions & 0 deletions apps/settings/lib/Settings/Personal/ServerDevNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use OCP\Settings\ISettings;
use OCP\Support\Subscription\IRegistry;
use OCP\Util;
use OCP\IConfig;

class ServerDevNotice implements ISettings {

Expand All @@ -25,6 +26,7 @@ public function __construct(
private IUserSession $userSession,
private IInitialState $initialState,
private IURLGenerator $urlGenerator,
private IConfig $config,
) {
}

Expand Down Expand Up @@ -62,6 +64,10 @@ public function getSection(): ?string {
return null;
}

if ($this->config->getSystemValueBool('settings.hide-dev-notice')) {
return null;
}

return 'personal-info';
}

Expand Down
Loading