Усилить безопасность и надёжность выполнения операций
This commit is contained in:
1 parent
626f2845e2
commit
8318e4b560
40 files changed
+1343
-185
No files matched your search
@@ -21,6 +21,9 @@ pub async fn confirm_operation(
|
||||
if !safety.class.requires_confirmation() {
|
||||
return Ok(());
|
||||
}
|
||||
if request_context.is_some_and(RuntimeRequestContext::approval_granted) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let Some(store) = store else {
|
||||
return Err(RuntimeError::ConfirmationStoreUnavailable {
|
||||
|
||||
Reference in new issue
Block a user