Skip to content
Snippets Groups Projects
Commit 4cdfcde2 authored by Erick Hitter's avatar Erick Hitter
Browse files

Blacklist takes priority

parent 009d0381
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment