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 sounds on device
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r authored and ajsb85 committed Apr 21, 2018
1 parent d4fa44d commit 3e84206
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install/installer.class.php
Expand Up @@ -1375,6 +1375,22 @@ static public function getPolicies() {
'is_android_system' => '0',
'is_apple_policy' => '1',
],

[
'name' => __('Disable all sounds', 'flyvemdm'),
'symbol' => 'disableAllSounds',
'group' => 'ui',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => 'Security > User interface',
'comment' => __('Disable all sounds of device', 'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],
];

// Restore user's locale
Expand Down
1 change: 1 addition & 0 deletions tests/suite-unit/PluginFlyvemdmAgent.php
Expand Up @@ -269,6 +269,7 @@ public function testGetTopicsToCleanup() {
'Policy/disableSpeakerphone',
'Policy/disableCreateVpnProfiles',
'Policy/inventoryFrequency',
'Policy/disableAllSounds',
];

$topics = \PluginFlyvemdmAgent::getTopicsToCleanup();
Expand Down

0 comments on commit 3e84206

Please sign in to comment.