fix allowserverssh mdm

This commit is contained in:
Eduard Gert
2026-06-15 13:54:07 +02:00
parent 47efdd839c
commit 83c9e5b0d1
5 changed files with 11 additions and 12 deletions
@@ -34,7 +34,7 @@ const MainBody = () => {
const { viewMode, setViewMode } = useViewMode();
const { mdm, features } = useRestrictions();
// Force flip the view if mdm changed it
// Force flip the view if MDM disabled advanced
useEffect(() => {
if (mdm.disableAdvancedView && viewMode === "advanced") {
setViewMode("default");
@@ -19,7 +19,7 @@ export const SettingsNavigation = () => {
const { t } = useTranslation();
const { updateAvailable } = useClientVersion();
const { mdm, features } = useRestrictions();
const showSsh = mdm.allowServerSSH || !features.disableUpdateSettings;
const showSsh = mdm.allowServerSSH ?? !features.disableUpdateSettings;
const aboutAdornment = updateAvailable ? (
<Tooltip content={t("settings.tabs.updateAvailable")} side={"right"}>
@@ -54,7 +54,7 @@ export const SettingsPage = () => {
[Tab.Network]: editable,
[Tab.Security]: editable,
[Tab.Profiles]: !features.disableProfiles,
[Tab.SSH]: mdm.allowServerSSH || editable,
[Tab.SSH]: mdm.allowServerSSH ?? editable,
[Tab.Advanced]: editable,
[Tab.Troubleshooting]: true,
[Tab.About]: true,