diff --git a/fhem/FHEM/96_allowed.pm b/fhem/FHEM/96_allowed.pm index 8da6641ac..e0e03957e 100644 --- a/fhem/FHEM/96_allowed.pm +++ b/fhem/FHEM/96_allowed.pm @@ -98,9 +98,10 @@ allowed_Authorize($$$$;$) return 0 if($me->{disabled}); my $vName = $cl->{SNAME} ? $cl->{SNAME} : $cl->{NAME}; return 0 if(!$me->{".validFor"}{$vName}); - return 0 if(AttrVal($me->{NAME}, "allowedIfAuthenticatedByMe", 0) && + my $mName = $me->{NAME}; + return 0 if(AttrVal($mName, "allowedIfAuthenticatedByMe",$featurelevel>6.0) && (!$cl->{AuthenticatedBy} || - $cl->{AuthenticatedBy} ne $me->{NAME})); + $cl->{AuthenticatedBy} ne $mName)); if($type eq "cmd") { return 0 if(!$me->{".allowedCommands"}); diff --git a/fhem/UPGRADE b/fhem/UPGRADE index 1d1c8ac3b..57cebe5d3 100644 --- a/fhem/UPGRADE +++ b/fhem/UPGRADE @@ -38,6 +38,8 @@ enable the old feature. - 98_structure: propagateAttr defaults to empty and not to all => setting attributes on structure wont be set automatically on the members. -- 2020-03-07 (6.1) +- ????-??-?? (6.1) - 98_RandomTimer: evaluate state reading instead of STATE (Value()). NOTE: In 6.0 version this can be forced by new attribute offState + - 96_allowed: the default for allowedIfAuthenticatedByMe is now 1 (relevant + if there are multiple allowed devices valid for the same target).