mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
96_allowed.pm: allowedIfAuthenticatedByMe=1 for featurelevel>6.0 (Forum #118674)
git-svn-id: https://svn.fhem.de/fhem/trunk@23721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
73e3e20597
commit
d1a3496cf9
@ -98,9 +98,10 @@ allowed_Authorize($$$$;$)
|
|||||||
return 0 if($me->{disabled});
|
return 0 if($me->{disabled});
|
||||||
my $vName = $cl->{SNAME} ? $cl->{SNAME} : $cl->{NAME};
|
my $vName = $cl->{SNAME} ? $cl->{SNAME} : $cl->{NAME};
|
||||||
return 0 if(!$me->{".validFor"}{$vName});
|
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} ||
|
||||||
$cl->{AuthenticatedBy} ne $me->{NAME}));
|
$cl->{AuthenticatedBy} ne $mName));
|
||||||
|
|
||||||
if($type eq "cmd") {
|
if($type eq "cmd") {
|
||||||
return 0 if(!$me->{".allowedCommands"});
|
return 0 if(!$me->{".allowedCommands"});
|
||||||
|
@ -38,6 +38,8 @@ enable the old feature.
|
|||||||
- 98_structure: propagateAttr defaults to empty and not to all => setting
|
- 98_structure: propagateAttr defaults to empty and not to all => setting
|
||||||
attributes on structure wont be set automatically on the members.
|
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()).
|
- 98_RandomTimer: evaluate state reading instead of STATE (Value()).
|
||||||
NOTE: In 6.0 version this can be forced by new attribute offState
|
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).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user