96_allowed.pm: fix the stacktrace output (Forum #124040)

git-svn-id: https://svn.fhem.de/fhem/trunk@25210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-11-10 10:39:53 +00:00
parent 84c9b72789
commit d78cea36f7

View File

@@ -109,7 +109,7 @@ allowed_Authorize($$$$;$)
# Return 0: allow stacking with other instances, see Forum#46380
return 0 if($me->{".allowedCommands"} =~ m/\b\Q$arg\E\b/);
Log3 $me, 3, "Forbidden command $arg for $cl->{NAME}";
stacktrace() if(AttrVal($me, "verbose", 5));
stacktrace() if(AttrVal($me->{NAME}, "verbose", 0) == 5);
return 2;
}
@@ -122,7 +122,7 @@ allowed_Authorize($$$$;$)
$arg =~ m/^$me->{".allowedDevicesRegexp"}$/);
if(!$silent) {
Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
stacktrace() if(AttrVal($me, "verbose", 5));
stacktrace() if(AttrVal($me->{NAME}, "verbose", 0) == 5);
}
return 2;
}