This commit is contained in:
kevin zhao
2025-12-02 15:22:26 -05:00
parent d6e85f9325
commit ecf0f163c6

View File

@@ -1677,6 +1677,8 @@ mod handlers {
}
}
/// Propagate a user's exec approval decision to the session
/// Also optionally whitelists command in execpolicy
pub async fn exec_approval(sess: &Arc<Session>, id: String, decision: ReviewDecision) {
if let ReviewDecision::ApprovedAllowPrefix { allow_prefix } = &decision
&& let Err(err) = sess.persist_command_allow_prefix(allow_prefix).await