Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit ba3b040

Browse files
committed
feat(policy): disable all notifications on device
Signed-off-by: Domingo Oropeza <[email protected]>
1 parent bcfbcb4 commit ba3b040

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: install/policies/userInterface.php

+19
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,25 @@
223223
'apple_min_version' => '0',
224224
'apple_max_version' => '0',
225225
],
226+
227+
[
228+
'name' => __('Disable notifications', 'flyvemdm'),
229+
'symbol' => 'areNotificationsEnabled',
230+
'group' => 'ui',
231+
'type' => 'bool',
232+
'type_data' => '',
233+
'unicity' => 1,
234+
'plugin_flyvemdm_policycategories_id' => $category,
235+
'comment' => __('Disable phone notifications.',
236+
'flyvemdm'),
237+
'default_value' => '0',
238+
'recommended_value' => '0',
239+
'is_android_system' => '0',
240+
'android_min_version' => '7.0',
241+
'android_max_version' => '0',
242+
'apple_min_version' => '0',
243+
'apple_max_version' => '0',
244+
],
226245
];
227246

228247
return array_merge($securityUserInterface, $configurationUserInterface);

Diff for: tests/src/Flyvemdm/Tests/CommonTestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ public static function policyList() {
577577
'Policy/disableStreamDTMF',
578578
'Policy/disableStreamSystem',
579579
'Policy/defaultStreamType',
580+
'Policy/areNotificationsEnabled',
580581
];
581582
}
582583
}

0 commit comments

Comments
 (0)