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 Jul 20, 2018
1 parent 46ccb5a commit b69d626
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' => '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);
1 change: 1 addition & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ public static function policyList() {
'Policy/disableStreamDTMF',
'Policy/disableStreamSystem',
'Policy/defaultStreamType',
'Policy/areNotificationsEnabled',
];
}
}

0 comments on commit b69d626

Please sign in to comment.