feat: improve premissioned audit logs (#3793)

* feat:  improve premissioned audit logs

* chore: update ee ref

* fix: build

* fix: sqlx
This commit is contained in:
HugoCasa
2024-05-23 08:55:48 +02:00
committed by GitHub
parent 068190f922
commit 21a077ecfa
25 changed files with 510 additions and 349 deletions
+6 -6
View File
@@ -663,7 +663,7 @@ async fn create_script_internal<'c>(
if p_hashes.is_some() && !p_hashes.unwrap().is_empty() {
audit_log(
&mut tx,
&authed.username,
&authed,
"scripts.update",
ActionKind::Update,
&w_id,
@@ -682,7 +682,7 @@ async fn create_script_internal<'c>(
} else {
audit_log(
&mut tx,
&authed.username,
&authed,
"scripts.create",
ActionKind::Create,
&w_id,
@@ -1163,7 +1163,7 @@ async fn archive_script_by_path(
.map_err(|e| Error::InternalErr(format!("archiving script in {w_id}: {e}")))?;
audit_log(
&mut *tx,
&authed.username,
&authed,
"scripts.archive",
ActionKind::Delete,
&w_id,
@@ -1215,7 +1215,7 @@ async fn archive_script_by_hash(
audit_log(
&mut *tx,
&authed.username,
&authed,
"scripts.archive",
ActionKind::Delete,
&w_id,
@@ -1255,7 +1255,7 @@ async fn delete_script_by_hash(
audit_log(
&mut *tx,
&authed.username,
&authed,
"scripts.delete",
ActionKind::Delete,
&w_id,
@@ -1322,7 +1322,7 @@ async fn delete_script_by_path(
audit_log(
&mut *tx,
&authed.username,
&authed,
"scripts.delete",
ActionKind::Delete,
&w_id,