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

Commit f95d4c4

Browse files
DIOHz0rbtry
authored andcommitted
feat(policy): add sim card pin
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
1 parent cd159dd commit f95d4c4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

install/installer.class.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,22 @@ static public function getPolicies() {
13761376
'is_apple_policy' => '1',
13771377
],
13781378

1379+
[
1380+
'name' => __('Set a SIM card PIN', 'flyvemdm'),
1381+
'symbol' => 'setSimCardPin',
1382+
'group' => 'phone',
1383+
'type' => 'int',
1384+
'type_data' => '',
1385+
'unicity' => 1,
1386+
'plugin_flyvemdm_policycategories_id' => 'Security > Phone',
1387+
'comment' => __('Set a SIM card PIN', 'flyvemdm'),
1388+
'default_value' => '0',
1389+
'recommended_value' => '0',
1390+
'is_android_policy' => '1',
1391+
'is_android_system' => '1',
1392+
'is_apple_policy' => '0',
1393+
],
1394+
13791395
[
13801396
'name' => __('Disable all sounds', 'flyvemdm'),
13811397
'symbol' => 'disableAllSounds',

tests/suite-unit/PluginFlyvemdmAgent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public function testGetTopicsToCleanup() {
269269
'Policy/disableSpeakerphone',
270270
'Policy/disableCreateVpnProfiles',
271271
'Policy/inventoryFrequency',
272+
'Policy/setSimCardPin',
272273
'Policy/disableAllSounds',
273274
];
274275

0 commit comments

Comments
 (0)