mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
96_allowed.pm: allow renaming of the allowed instance (Forum #116026)
git-svn-id: https://svn.fhem.de/fhem/trunk@23205 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
78119a8208
commit
ee13a7b262
@ -21,6 +21,7 @@ allowed_Initialize($)
|
|||||||
$hash->{AuthenticateFn} = "allowed_Authenticate";
|
$hash->{AuthenticateFn} = "allowed_Authenticate";
|
||||||
$hash->{SetFn} = "allowed_Set";
|
$hash->{SetFn} = "allowed_Set";
|
||||||
$hash->{AttrFn} = "allowed_Attr";
|
$hash->{AttrFn} = "allowed_Attr";
|
||||||
|
$hash->{RenameFn} = "allowed_Rename";
|
||||||
no warnings 'qw';
|
no warnings 'qw';
|
||||||
my @attrList = qw(
|
my @attrList = qw(
|
||||||
allowedCommands
|
allowedCommands
|
||||||
@ -79,6 +80,13 @@ allowed_Undef($$)
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub
|
||||||
|
allowed_Rename($$)
|
||||||
|
{
|
||||||
|
$auth_refresh = 1;
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Return 0 for don't care, 1 for Allowed, 2 for forbidden.
|
# Return 0 for don't care, 1 for Allowed, 2 for forbidden.
|
||||||
sub
|
sub
|
||||||
|
@ -3791,6 +3791,7 @@ CallFn(@)
|
|||||||
if(!$d || !$defs{$d}) {
|
if(!$d || !$defs{$d}) {
|
||||||
$d = "<undefined>" if(!defined($d));
|
$d = "<undefined>" if(!defined($d));
|
||||||
Log 0, "Strange call for nonexistent $d: $n";
|
Log 0, "Strange call for nonexistent $d: $n";
|
||||||
|
stacktrace();
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
if(!$defs{$d}{TYPE}) {
|
if(!$defs{$d}{TYPE}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user