From e16a28cc2908c5c6e807ea3848461c9c282d59fd Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 15 Dec 2025 16:07:26 -0500 Subject: [PATCH] Work on checking or guessing permissions based on Novi URL params. --- src/routes/idaa/(idaa)/+layout.svelte | 19 ++- .../(idaa)/video_conferences/+page.svelte | 3 +- static/idaa_novi_iframe_jitsi_meeting.html | 135 +++--------------- 3 files changed, 43 insertions(+), 114 deletions(-) diff --git a/src/routes/idaa/(idaa)/+layout.svelte b/src/routes/idaa/(idaa)/+layout.svelte index 2a8f21ab..486d9494 100644 --- a/src/routes/idaa/(idaa)/+layout.svelte +++ b/src/routes/idaa/(idaa)/+layout.svelte @@ -75,7 +75,24 @@ // Resetting these just in case... $idaa_loc.bb.qry__hidden == 'not_hidden'; $idaa_loc.bb.qry__enabled == 'enabled'; - } else if ($ae_loc.iframe) { + // NOTE: This is sort of temporary while we work on getting Jisti working with IDAA's Novi site. + } else if ( + $ae_loc?.iframe && + $idaa_loc?.novi_uuid?.length == 36 + ) { + $ae_loc.access_type = 'authenticated'; + $ae_loc.super_access = false; + $ae_loc.manager_access = false; + $ae_loc.administrator_access = false; + $ae_loc.trusted_access = false; + $ae_loc.public_access = false; + $ae_loc.authenticated_access = true; + $ae_loc.anonymous_access = true; + + // Resetting these just in case... + $idaa_loc.bb.qry__hidden == 'not_hidden'; + $idaa_loc.bb.qry__enabled == 'enabled'; + } else if ($ae_loc?.iframe) { $ae_loc.access_type = 'anonymous'; $ae_loc.super_access = false; $ae_loc.manager_access = false; diff --git a/src/routes/idaa/(idaa)/video_conferences/+page.svelte b/src/routes/idaa/(idaa)/video_conferences/+page.svelte index e6869544..c0a301d0 100644 --- a/src/routes/idaa/(idaa)/video_conferences/+page.svelte +++ b/src/routes/idaa/(idaa)/video_conferences/+page.svelte @@ -513,8 +513,9 @@ Re-initialize Jitsi +