mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
do not require being a super admin for default error handler
This commit is contained in:
@@ -159,7 +159,9 @@ pub async fn get_global_setting(
|
||||
authed: ApiAuthed,
|
||||
Path(key): Path<String>,
|
||||
) -> JsonResult<serde_json::Value> {
|
||||
require_super_admin(&db, &authed.email).await?;
|
||||
if !key.starts_with("default_error_handler_") {
|
||||
require_super_admin(&db, &authed.email).await?;
|
||||
}
|
||||
let value = sqlx::query!("SELECT value FROM global_settings WHERE name = $1", key)
|
||||
.fetch_optional(&db)
|
||||
.await?
|
||||
|
||||
Reference in New Issue
Block a user