the other way around

This commit is contained in:
Oliver Gorwits
2017-08-01 15:34:37 +01:00
parent 33d2fe13bd
commit ec041dafd2

View File

@@ -28,9 +28,9 @@ register 'register_core_driver' => sub {
return false unless (ref $device and (ref {} eq ref $userconf)); return false unless (ref $device and (ref {} eq ref $userconf));
# first check internal (driverconf) exclusion/inclusion criteria # first check internal (driverconf) exclusion/inclusion criteria
return false if ($no and check_acl_no($device, $no)); return false if ($only and not check_acl_only($device, $only));
return false if ($only and not (exists $userconf->{driver}) return false if ($no and (not exists $userconf->{driver})
and not check_acl_only($device, $only)); and check_acl_no($device, $only));
# then check external (userconf) exclusion/inclusion criteria # then check external (userconf) exclusion/inclusion criteria
return false if exists $userconf->{phase} return false if exists $userconf->{phase}