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:
@@ -78,7 +78,9 @@ export default function WebinarRecording() {
|
|||||||
|
|
||||||
setProduct(productData);
|
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' });
|
toast({ title: 'Info', description: 'Rekaman webinar belum tersedia', variant: 'destructive' });
|
||||||
navigate('/dashboard');
|
navigate('/dashboard');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user