Restrict UI permissions to resend profiles (#35688)

This commit is contained in:
Sarah Gillespie 2025-11-13 12:46:19 -06:00 committed by GitHub
parent 2cedc3e22e
commit c93ddcb3fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1 @@
- Fixed UI bug where the option to resend MDM profiles for macOS hosts was incorrectly presented to non-admin and non-maintainer users.

View file

@ -1020,6 +1020,13 @@ const HostDetailsPage = ({
const isIosOrIpadosHost = isIPadOrIPhone(host.platform);
const isAndroidHost = isAndroid(host.platform);
const canResendProfiles =
isDarwinHost &&
(isGlobalAdmin ||
isGlobalMaintainer ||
isHostTeamAdmin ||
isHostTeamMaintainer);
const showSoftwareLibraryTab = isPremiumTier;
const showActivityCard = !isAndroidHost;
@ -1392,7 +1399,7 @@ const HostDetailsPage = ({
)}
{showOSSettingsModal && (
<OSSettingsModal
canResendProfiles={host.platform === "darwin"}
canResendProfiles={canResendProfiles}
platform={host.platform}
hostMDMData={host.mdm}
onClose={toggleOSSettingsModal}