mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
Fix inverted logic for deny_command (#4563)
This commit is contained in:
@@ -109,7 +109,7 @@ def validate_command(command: str, config: Config) -> bool:
|
||||
if not tokens:
|
||||
return False
|
||||
|
||||
if config.deny_commands and tokens[0] not in config.deny_commands:
|
||||
if config.deny_commands and tokens[0] in config.deny_commands:
|
||||
return False
|
||||
|
||||
for keyword in config.allow_commands:
|
||||
|
||||
Reference in New Issue
Block a user