do not require being a super admin for default error handler

This commit is contained in:
Ruben Fiszel
2023-11-09 12:07:14 +01:00
parent f780c4936e
commit 26895e5e1f
+1 -1
View File
@@ -159,7 +159,7 @@ pub async fn get_global_setting(
authed: ApiAuthed,
Path(key): Path<String>,
) -> JsonResult<serde_json::Value> {
if !key.starts_with("default_error_handler_") {
if !key.starts_with("default_error_handler_") && !key.starts_with("default_recovery_handler_") {
require_super_admin(&db, &authed.email).await?;
}
let value = sqlx::query!("SELECT value FROM global_settings WHERE name = $1", key)