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

Commit

Permalink
fix(install): avoid some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Nov 16, 2017
1 parent dc48776 commit 3431ca6
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
PluginFlyvemdmInvitation::$rightname => ALLSTANDARDRIGHT ,
PluginFlyvemdmInvitationlog::$rightname => READ,
PluginFlyvemdmGeolocation::$rightname => ALLSTANDARDRIGHT | READNOTE | UPDATENOTE,
PluginFlyvemdmTask::$rightname => READ,
]);
$profileRight->updateProfileRights($profiles_id, $newRights);

Expand Down Expand Up @@ -205,18 +204,10 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$migration->dropKey($table, 'status');

$policyCategory = new PluginFlyvemdmPolicyCategory();
$policyCategory->add([
'id' => 7,
'name' => 'USB',
'plugin_flyvemdm_policycategories_id' => 1,
'completename' => 'Security > USB',
'level' => 2
$policyCategory->import([
'completename' => 'Security > USB'
]);
$policyCategory->add([
'id' => 8,
'name' => 'Phone',
'plugin_flyvemdm_policycategories_id' => 1,
'completename' => 'Phone',
'level' => 1
$policyCategory->import([
'completename' => 'Phone'
]);
}

0 comments on commit 3431ca6

Please sign in to comment.