mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
96_allowed.pm: add stacktrace if verbose=5 (Forum #85083)
git-svn-id: https://svn.fhem.de/fhem/trunk@16295 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b562a46e91
commit
31792a8088
@ -80,6 +80,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));
|
||||
return 2;
|
||||
}
|
||||
|
||||
@ -87,6 +88,7 @@ allowed_Authorize($$$$)
|
||||
return 0 if(!$me->{allowedDevices});
|
||||
return 1 if($me->{allowedDevices} =~ m/\b\Q$arg\E\b/);
|
||||
Log3 $me, 3, "Forbidden device $arg for $cl->{NAME}";
|
||||
stacktrace() if(AttrVal($me, "verbose", 5));
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user