diff --git a/ee/tabby-webserver/src/schema/mod.rs b/ee/tabby-webserver/src/schema/mod.rs index 9d2e389489a6..e2819f3d17fa 100644 --- a/ee/tabby-webserver/src/schema/mod.rs +++ b/ee/tabby-webserver/src/schema/mod.rs @@ -353,6 +353,7 @@ impl Mutation { } async fn send_test_email(ctx: &Context, to: String) -> Result { + check_admin(ctx)?; ctx.locator .email() .send_test_email(to)