diff --git a/install/policies/userInterface.php b/install/policies/userInterface.php index b8743ebf..8cf29dde 100644 --- a/install/policies/userInterface.php +++ b/install/policies/userInterface.php @@ -94,6 +94,24 @@ 'apple_max_version' => '0', ], + [ + 'name' => __('Disable microphone', 'flyvemdm'), + 'symbol' => 'disableMicrophone', + 'group' => 'ui', + 'type' => 'bool', + 'type_data' => '', + 'unicity' => 1, + 'plugin_flyvemdm_policycategories_id' => $category, + 'comment' => __('Set microphone muted', 'flyvemdm'), + 'default_value' => '0', + 'recommended_value' => '0', + 'is_android_system' => '0', + 'android_min_version' => '1.0', + 'android_max_version' => '0', + 'apple_min_version' => '0', + 'apple_max_version' => '0', + ], + [ 'name' => __('Disable ringer sounds', 'flyvemdm'), 'symbol' => 'disableStreamRing', diff --git a/tests/src/Flyvemdm/Tests/CommonTestCase.php b/tests/src/Flyvemdm/Tests/CommonTestCase.php index 6c986422..242bcbd7 100644 --- a/tests/src/Flyvemdm/Tests/CommonTestCase.php +++ b/tests/src/Flyvemdm/Tests/CommonTestCase.php @@ -577,6 +577,7 @@ public static function policyList() { 'Policy/disableScreenCapture', 'Policy/disableSpeakerphone', 'Policy/disableUnknownAppSources', + 'Policy/disableMicrophone', 'Policy/disableStreamMusic', 'Policy/disableStreamRing', 'Policy/disableStreamAlarm',