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

Commit

Permalink
feat(policy): protect policies test with a policy
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry authored and DIOHz0r committed Aug 23, 2018
1 parent 4c27d9c commit f16ba3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions install/policies/mdm.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,22 @@

$category = 'Mobile Device Management';
return [
[
'name' => __('Enable policies test console', 'flyvemdm'),
'symbol' => 'enablePoliciesTest',
'group' => 'mdm',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Give access to the policies test user interface.',
'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_system' => '0',
'android_min_version' => '3.0',
'android_max_version' => '0',
'apple_min_version' => '0',
'apple_max_version' => '0',
],
];
1 change: 1 addition & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ public static function policyList() {
'Policy/disableStreamDTMF',
'Policy/disableStreamSystem',
'Policy/defaultStreamType',
'Policy/enablePoliciesTest',
];
}
}

0 comments on commit f16ba3e

Please sign in to comment.