Updating the permissions. Now with show/hide email access link.
This commit is contained in:
@@ -60,7 +60,9 @@ $: lq__event_location_obj_li = liveQuery(async () => {
|
||||
|
||||
// Functions and Logic
|
||||
onMount(() => {
|
||||
console.log('Events Location [slug]: +page.svelte');
|
||||
if (log_lvl) {
|
||||
console.log('Events [event_id] Locations: +page.svelte');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -202,6 +202,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
|
||||
{/if}
|
||||
|
||||
{#if $events_loc.pres_mgmt?.require__presenter_agree
|
||||
&& $events_loc?.pres_mgmt?.show__email_access_link
|
||||
&& $lq__event_presenter_obj?.email
|
||||
&& ($ae_loc.public_access || !$events_loc.auth__person?.id)
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import { db_events } from "$lib/db_events";
|
||||
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { events_loc, events_sess, events_slct, events_trigger, events_trig_kv } from '$lib/ae_events_stores';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
// Exports
|
||||
export let log_lvl: number = 0;
|
||||
@@ -143,7 +143,7 @@ let lq__event_presentation_obj = liveQuery(
|
||||
</a>
|
||||
|
||||
|
||||
{#if event_presenter_obj?.email && ($ae_loc.administrator_access || !$events_loc.auth__person?.id)}
|
||||
{#if ($events_loc?.pres_mgmt?.show__email_access_link && event_presenter_obj?.email && ($ae_loc.administrator_access || !$events_loc.auth__person?.id))}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
|
||||
@@ -11,10 +11,10 @@ import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
// Exports
|
||||
export let container_class_li: string|Array<string> = [];
|
||||
export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher'
|
||||
export let link_to_type: string;
|
||||
export let link_to_id: string;
|
||||
export let event_presenter_id_random_li: Array<string>;
|
||||
// export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher'
|
||||
// export let link_to_type: string;
|
||||
// export let link_to_id: string;
|
||||
// export let event_presenter_id_random_li: Array<string>;
|
||||
export let lq__event_presenter_obj_li: any;
|
||||
export let log_lvl: number = 0;
|
||||
|
||||
@@ -23,9 +23,10 @@ export let log_lvl: number = 0;
|
||||
export let show_presentation_fields: boolean = false;
|
||||
export let show_session_fields: boolean = false;
|
||||
|
||||
// if (log_lvl) {
|
||||
// console.log(`link_to_type: ${link_to_type}; link_to_id: ${link_to_id}`);
|
||||
// }
|
||||
if (log_lvl) {
|
||||
console.log(`container_class_li: ${container_class_li}; show_presentation_fields: ${show_presentation_fields}; show_session_fields: ${show_session_fields}`);
|
||||
// console.log(`link_to_type: ${link_to_type}; link_to_id: ${link_to_id}`);
|
||||
}
|
||||
|
||||
// Variables
|
||||
// let ae_promises: key_val = {};
|
||||
|
||||
Reference in New Issue
Block a user