Fix WebinarRecording access check to support M3U8 and MP4

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 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-01-17 11:54:22 +07:00
parent 221ae195e9
commit d47be3aca6

View File

@@ -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;