Events: Allow unblocking of addresses if the are part of the ignore list.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Jun 2018 17:12:55 +0000 (19:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Jun 2018 17:12:55 +0000 (19:12 +0200)
Fixes #11247

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
modules/Events.pm

index 007ad46..2892786 100644 (file)
@@ -137,8 +137,8 @@ sub CheckAction ($$) {
                        return;
                }
 
-               # Check if address should be ignored.
-               if(&_IsOnIgnoreList($bin_address)) {
+               # Check if the given command is not "unblock" and the address should be ignored.
+               if(($command ne "unblock") && (&_IsOnIgnoreList($bin_address))) {
                        # Log message.
                        $logger->Log("info", "Ignoring event for $address, because it is part of the ignore list.");
                        return;