Merge branch 'main' into alp/teams_scripts

This commit is contained in:
Alex Petric
2025-02-04 10:01:06 -05:00
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1221,7 +1221,7 @@ async fn get_encryption_key(
Extension(db): Extension<DB>,
Path(w_id): Path<String>,
) -> JsonResult<GetEncryptionKeyResponse> {
require_super_admin(&db, &authed.email).await?;
require_admin(authed.is_admin, &authed.username)?;
let encryption_key_opt = sqlx::query_scalar!(
"SELECT key FROM workspace_key WHERE workspace_id = $1",