mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Restrict UI permissions to resend profiles (#35688)
This commit is contained in:
parent
2cedc3e22e
commit
c93ddcb3fb
2 changed files with 9 additions and 1 deletions
1
changes/33288-ui-rbac-resend-profiles
Normal file
1
changes/33288-ui-rbac-resend-profiles
Normal 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.
|
||||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue