fail safe on _no acl matching

This commit is contained in:
Oliver Gorwits
2017-05-12 18:23:26 +01:00
parent 4df2bc45ea
commit 5e55c60ee8

View File

@@ -39,7 +39,7 @@ C<$setting_name> can contain.
sub check_acl_no { sub check_acl_no {
my ($thing, $setting_name) = @_; my ($thing, $setting_name) = @_;
return 0 unless $thing and $setting_name; return 1 unless $thing and $setting_name;
return check_acl($thing, setting($setting_name)); return check_acl($thing, setting($setting_name));
} }