Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Oct 11, 2023
1 parent a568089 commit 53ffea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/profile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static function addRightToAllProfiles() {
$DB->updateOrInsert('glpi_plugin_mreporting_profiles', [
'profiles_id' => $prof['id'],
'reports' => $report['id'],
'rights' => null
'right' => null
], [
'profiles_id' => $prof['id'],
'reports' => $report['id'],
Expand Down Expand Up @@ -162,7 +162,7 @@ public static function addRightToProfile($idProfile) {
$DB->updateOrInsert('glpi_plugin_mreporting_profiles', [
'profiles_id' => $idProfile,
'reports' => $report['id'],
'rights' => READ
'right' => READ
], [
'profiles_id' => $idProfile,
'reports' => $report['id'],
Expand Down

0 comments on commit 53ffea2

Please sign in to comment.