diff --git a/install/policies/userInterface.php b/install/policies/userInterface.php index b8743ebf..d9bbed92 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' => 'areNotificationsEnabled', + '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 6c986422..06de1ad3 100644 --- a/tests/src/Flyvemdm/Tests/CommonTestCase.php +++ b/tests/src/Flyvemdm/Tests/CommonTestCase.php @@ -585,6 +585,7 @@ public static function policyList() { 'Policy/disableStreamDTMF', 'Policy/disableStreamSystem', 'Policy/defaultStreamType', + 'Policy/areNotificationsEnabled', ]; } }