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

WIP Disable device clipboard #661

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions install/policies/userInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@
'apple_min_version' => '0',
'apple_max_version' => '0',
],

[
'name' => __('Disable device clipboard', 'flyvemdm'),
'symbol' => 'disableClipboard',
'group' => 'ui',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Disable copy or paste actions on the device.',
'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',
],
];

$category = 'Configuration > User interface';
Expand Down
1 change: 1 addition & 0 deletions tests/src/Flyvemdm/Tests/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ public static function policyList() {
'Policy/disableAirplaneMode',
'Policy/disableStatusBar',
'Policy/disableScreenCapture',
'Policy/disableClipboard',
'Policy/disableSpeakerphone',
'Policy/disableUnknownAppSources',
'Policy/disableStreamMusic',
Expand Down