diff --git a/changes/33288-ui-rbac-resend-profiles b/changes/33288-ui-rbac-resend-profiles new file mode 100644 index 0000000000..8d22cf4107 --- /dev/null +++ b/changes/33288-ui-rbac-resend-profiles @@ -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. diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index f88206a1e9..ef028a6b41 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -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 && (