Work on permissions for iframes and Novi.

This commit is contained in:
Scott Idem
2024-11-19 14:05:06 -05:00
parent 9a1d022d5a
commit b0ae649824
3 changed files with 12 additions and 4 deletions

View File

@@ -9,6 +9,8 @@ import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
import { events_loc } from '$lib/ae_events_stores';
// import { db_events } from "$lib/db_events";
export let hidden: boolean = false;
let entered_passcode: null|string = null;
let show_passcode_input: boolean = false;
@@ -177,7 +179,11 @@ function dispatch_edit_mode_changed() {
</script>
<section id="AE-Quick-Access-Type" class="ae_access_type bg-surface-100 text-surface-800 transition duration-300 delay-150 hover:delay-1000 hover:ease-out transition-all hover:transition-all hidden-print flex flex-col items-end gap-1">
<section
id="AE-Quick-Access-Type"
class="ae_access_type bg-surface-100 text-surface-800 transition duration-300 delay-150 hover:delay-1000 hover:ease-out transition-all hover:transition-all hidden-print flex flex-col items-end gap-1"
class:hidden={hidden}
>
<!-- Show list of authorized sessions and presentations for a user -->

View File

@@ -544,7 +544,9 @@ onMount(() => {
{#if $ae_loc.hub?.show_element__access_type}
<Element_access_type />
<Element_access_type
hidden={$ae_loc.iframe && !$ae_loc.trusted_access}
/>
{/if}

View File

@@ -82,7 +82,7 @@ let ae_promises: key_val = {};
<div class="ae_options flex flex-row flex-wrap gap-2 items-center justify-center">
<button
type="button"
disabled={!$ae_loc.trusted_access}
disabled={!$ae_loc.authenticated_access}
on:click={() => {
$idaa_slct.archive_content_id = idaa_archive_content_obj?.archive_content_id;
$idaa_slct.archive_content_obj = idaa_archive_content_obj;
@@ -108,7 +108,7 @@ let ae_promises: key_val = {};
<span class="fas fa-play m-1"></span> Play/View
</button>
{#if $ae_loc.authenticated_access && idaa_archive_content_obj?.hosted_file_id}
{#if $ae_loc.trusted_access && idaa_archive_content_obj?.hosted_file_id}
<button
type="button"
disabled={!$ae_loc.trusted_access}