permissions: --yolo, command-aware allow rules, load allow.json
This commit is contained in:
1 parent
b36559bd95
commit
23dc8cd36e
6 files changed
+148
-36
No files matched your search
@@ -114,7 +114,7 @@ impl Registry {
|
||||
.allow
|
||||
.lock()
|
||||
.unwrap_or_else(|e| e.into_inner())
|
||||
.has(&req.rule);
|
||||
.allows(&req);
|
||||
if !known {
|
||||
let rule = req.rule.clone();
|
||||
match ask(req).await {
|
||||
|
||||
Reference in new issue
Block a user