From 67485a45eca8e5185b861029b1cd97bd9c893630 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 15 Mar 2020 15:23:50 +0000 Subject: [PATCH] 93_DbRep: fix user rights check for index operation git-svn-id: https://svn.fhem.de/fhem/trunk@21429 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/93_DbRep.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 1327adda9..537fab2b6 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 93_DbRep: fix user rights check for index operation - bugfix: 73_AutoShuttersControl: fix SleepPos conditions in residents and roommates Fn - feature: 73_DoorBird: Manual Video_Request diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index ed3953a0b..05d281741 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -58,6 +58,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # Version History intern our %DbRep_vNotesIntern = ( + "8.32.4" => "15.03.2020 fix rights check for index operation ", "8.32.3" => "10.03.2020 better logfile messages in some cases of index operation ", "8.32.2" => "01.03.2020 fix PERL WARNING: Argument \"\" isn't numeric in sprintf at ./FHEM/93_DbRep.pm line 10708 again ", "8.32.1" => "08.02.2020 fix PERL WARNING: Argument \"\" isn't numeric in sprintf at ./FHEM/93_DbRep.pm line 10708 ", @@ -6602,8 +6603,8 @@ sub DbRep_Index($) { my $bst = [gettimeofday]; # Rechte Check MYSQL - if($cmdidx ne "list_all") { - if($dbmodel =~ /MYSQL/ && $grants && $grants ne "ALL PRIVILEGES") { + if($cmdidx ne "list_all" && $dbmodel =~ /MYSQL/) { + if($grants && $grants ne "ALL PRIVILEGES") { # Rechte INDEX und ALTER benötigt my $i = index($grants,"INDEX"); my $a = index($grants,"ALTER");