mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-29 16:15:51 +00:00
Merge branch 'main' into alp/teams_scripts
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user