96_allowed: fix warning in Authorized (Forum #85073)

git-svn-id: https://svn.fhem.de/fhem/trunk@16290 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-02-28 13:37:12 +00:00
parent c9697daf6e
commit 42a2f97d12

View File

@@ -85,7 +85,7 @@ allowed_Authorize($$$$)
if($type eq "devicename") {
return 0 if(!$me->{allowedDevices});
return if($me->{allowedDevices} =~ m/\b\Q$arg\E\b/);
return 1 if($me->{allowedDevices} =~ m/\b\Q$arg\E\b/);
Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
return 2;
}