From 4cdfcde27efa1f2d7963a123a4aa8953a71b303e Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Fri, 8 Sep 2017 13:06:56 -0700 Subject: [PATCH] Blacklist takes priority --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index c62b836..08d7271 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -60,7 +60,7 @@ function validate_args( $args ) { * @return bool */ function is_command_allowed( $command ) { - return in_array( $command, get_command_whitelist(), true ) && ! in_array( $command, get_command_blacklist(), true ); + return ! in_array( $command, get_command_blacklist(), true ) && in_array( $command, get_command_whitelist(), true ); } /** -- GitLab