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

Commit

Permalink
feat(policy): disable all notifications on device
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <[email protected]>
  • Loading branch information
DIOHz0r committed Aug 31, 2018
1 parent 57f7f5f commit 75a2bde
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions install/policies/userInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
1 change: 1 addition & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ public static function policyList() {
'Policy/disableStreamDTMF',
'Policy/disableStreamSystem',
'Policy/defaultStreamType',
'Policy/disableNotifications',
];
}
}

0 comments on commit 75a2bde

Please sign in to comment.