2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

93_DbRep: fix user rights check for index operation

git-svn-id: https://svn.fhem.de/fhem/trunk@21429 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-03-15 15:23:50 +00:00
parent 3d2295fc26
commit 67485a45ec
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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");