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 #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
fhem
@ -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}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user