Skip to content

Commit

Permalink
fix(webserver): Require admin for send_test_email (#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam authored Feb 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent afee2ff commit c664666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ee/tabby-webserver/src/schema/mod.rs
Original file line number Diff line number Diff line change
@@ -353,6 +353,7 @@ impl Mutation {
}

async fn send_test_email(ctx: &Context, to: String) -> Result<bool> {
check_admin(ctx)?;
ctx.locator
.email()
.send_test_email(to)

0 comments on commit c664666

Please sign in to comment.