diff --git a/install/policies/userInterface.php b/install/policies/userInterface.php index b8743ebf..fd48f6b4 100644 --- a/install/policies/userInterface.php +++ b/install/policies/userInterface.php @@ -223,6 +223,25 @@ 'apple_min_version' => '0', 'apple_max_version' => '0', ], + + [ + 'name' => __('Disable notifications', 'flyvemdm'), + 'symbol' => 'disableNotifications', + 'group' => 'ui', + 'type' => 'bool', + 'type_data' => '', + 'unicity' => 1, + 'plugin_flyvemdm_policycategories_id' => $category, + 'comment' => __('Disable phone notifications.', + 'flyvemdm'), + 'default_value' => '0', + 'recommended_value' => '0', + 'is_android_system' => '0', + 'android_min_version' => '7.0', + 'android_max_version' => '0', + 'apple_min_version' => '0', + 'apple_max_version' => '0', + ], ]; return array_merge($securityUserInterface, $configurationUserInterface); \ No newline at end of file diff --git a/tests/src/Flyvemdm/Tests/CommonTestCase.php b/tests/src/Flyvemdm/Tests/CommonTestCase.php index cbfa8f5c..8b9fc2d4 100644 --- a/tests/src/Flyvemdm/Tests/CommonTestCase.php +++ b/tests/src/Flyvemdm/Tests/CommonTestCase.php @@ -588,6 +588,7 @@ public static function policyList() { 'Policy/disableStreamDTMF', 'Policy/disableStreamSystem', 'Policy/defaultStreamType', + 'Policy/disableNotifications', ]; } }