From 6f0494091e68e7892a5fb05e8f630122fbe74abd Mon Sep 17 00:00:00 2001 From: Domingo Oropeza Date: Fri, 13 Apr 2018 10:19:42 -0400 Subject: [PATCH] feat(policy): disable all notifications on device Signed-off-by: Domingo Oropeza --- install/policies/userInterface.php | 19 +++++++++++++++++++ tests/src/Flyvemdm/Tests/CommonTestCase.php | 1 + 2 files changed, 20 insertions(+) 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 393fba97..25f05d0b 100644 --- a/tests/src/Flyvemdm/Tests/CommonTestCase.php +++ b/tests/src/Flyvemdm/Tests/CommonTestCase.php @@ -587,6 +587,7 @@ public static function policyList() { 'Policy/disableStreamDTMF', 'Policy/disableStreamSystem', 'Policy/defaultStreamType', + 'Policy/areNotificationsEnabled', ]; } }