From eff73a9cff5a50874ded74b14cf09ae9042290d4 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 4 Oct 2023 00:47:02 -0400 Subject: [PATCH] actually check premium plan --- .../endpoints/animation/enqueue_lipsync_animation.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/animation/enqueue_lipsync_animation.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/animation/enqueue_lipsync_animation.rs index e636d8605c..3e6a043054 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/animation/enqueue_lipsync_animation.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/animation/enqueue_lipsync_animation.rs @@ -283,7 +283,10 @@ pub async fn enqueue_lipsync_animation_handler( inference_args.maybe_make_still = Some(true); } - if request.remove_watermark.unwrap_or(false) { + let remove_watermark = request.remove_watermark.unwrap_or(false) + && plan.can_remove_visual_watermarks(); + + if remove_watermark { inference_args.maybe_remove_watermark = Some(true); }