mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
## For #32683 - Gate Setup experience steps for MDM and ABM being enabled at the individual sidenav level instead of the entire section - Allow Linux software installation even when MDM/ABM not enabled - Improve typing of sidenav ### Setup experience > Install software > Linux can be accessed without MDM/ABM, but not macOS:  ### Other setup experience tabs gated without MDM/ABM configured (note specific conditions for End user authentication - Apple MDM OR Android MDM, with informative Tooltips:  - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
15 lines
469 B
TypeScript
15 lines
469 B
TypeScript
import { IConfig } from "interfaces/config";
|
|
import { API_NO_TEAM_ID, ITeamConfig } from "interfaces/team";
|
|
|
|
const getManualAgentInstallSetting = (
|
|
currentTeamId: number,
|
|
globalConfig?: IConfig,
|
|
teamConfig?: ITeamConfig
|
|
) => {
|
|
if (currentTeamId === API_NO_TEAM_ID) {
|
|
return globalConfig?.mdm.macos_setup.manual_agent_install || false;
|
|
}
|
|
return teamConfig?.mdm?.macos_setup.manual_agent_install || false;
|
|
};
|
|
|
|
export default getManualAgentInstallSetting;
|