* Check if the current state is compliant with MDM policy * @returns true if compliant or no MDM policy exists, false if MDM policy exists and user is non-compliant
()
| 2872 | * @returns true if compliant or no MDM policy exists, false if MDM policy exists and user is non-compliant |
| 2873 | */ |
| 2874 | public checkMdmCompliance(): boolean { |
| 2875 | if (!this.mdmService) { |
| 2876 | return true // No MDM service, allow operation |
| 2877 | } |
| 2878 | |
| 2879 | const compliance = this.mdmService.isCompliant() |
| 2880 | |
| 2881 | if (!compliance.compliant) { |
| 2882 | return false |
| 2883 | } |
| 2884 | |
| 2885 | return true |
| 2886 | } |
| 2887 | |
| 2888 | /** |
| 2889 | * Gets the CodeIndexManager for the current active workspace |
nothing calls this directly
no test coverage detected