From d47be3aca6faa9f7ebfbdf0bd19e8591e3b46917 Mon Sep 17 00:00:00 2001 From: dwindown Date: Sat, 17 Jan 2026 11:54:22 +0700 Subject: [PATCH] Fix WebinarRecording access check to support M3U8 and MP4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The access check was only checking recording_url and rejecting access when null, even if m3u8_url or mp4_url existed. Now checks all recording types. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/pages/WebinarRecording.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/WebinarRecording.tsx b/src/pages/WebinarRecording.tsx index caf62d2..dd11789 100644 --- a/src/pages/WebinarRecording.tsx +++ b/src/pages/WebinarRecording.tsx @@ -78,7 +78,9 @@ export default function WebinarRecording() { setProduct(productData); - if (!productData.recording_url) { + // Check if any recording exists (YouTube, M3U8, or MP4) + const hasRecording = productData.recording_url || productData.m3u8_url || productData.mp4_url; + if (!hasRecording) { toast({ title: 'Info', description: 'Rekaman webinar belum tersedia', variant: 'destructive' }); navigate('/dashboard'); return;