2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-28 02:44:53 +00:00

96_allowed.pm: allow renaming of the allowed instance (Forum )

git-svn-id: https://svn.fhem.de/fhem/trunk@23205 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-11-21 18:35:01 +00:00
parent 78119a8208
commit ee13a7b262
2 changed files with 9 additions and 0 deletions

@ -21,6 +21,7 @@ allowed_Initialize($)
$hash->{AuthenticateFn} = "allowed_Authenticate";
$hash->{SetFn} = "allowed_Set";
$hash->{AttrFn} = "allowed_Attr";
$hash->{RenameFn} = "allowed_Rename";
no warnings 'qw';
my @attrList = qw(
allowedCommands
@ -79,6 +80,13 @@ allowed_Undef($$)
return undef;
}
sub
allowed_Rename($$)
{
$auth_refresh = 1;
return undef;
}
#####################################
# Return 0 for don't care, 1 for Allowed, 2 for forbidden.
sub

@ -3791,6 +3791,7 @@ CallFn(@)
if(!$d || !$defs{$d}) {
$d = "<undefined>" if(!defined($d));
Log 0, "Strange call for nonexistent $d: $n";
stacktrace();
return undef;
}
if(!$defs{$d}{TYPE}) {