More updates related to permissions.

This commit is contained in:
Scott Idem
2024-09-25 13:21:28 -04:00
parent 8005189bc4
commit cc4446b549
4 changed files with 8 additions and 7 deletions

View File

@@ -346,8 +346,8 @@ $: if ($lq__event_presenter_obj) {
Copy Access Link
</button>
{/if}
{#if $lq__event_presenter_obj.email
&& $events_loc.pres_mgmt?.show__email_access_link
{#if $events_loc.pres_mgmt?.require__presenter_agree
&& $lq__event_presenter_obj?.email
&& ($ae_loc.public_access || !$events_loc.auth__person?.id)
}
<button

View File

@@ -178,7 +178,7 @@ onMount(() => {
for_type="event"
for_id={$lq__event_session_obj?.event_id_random}
class_li="w-full max-w-screen-lg text-lg text-blue-500 font-bold text-center p-1 m-auto border border-blue-200 rounded-md bg-blue-100 space-y-2"
hide={$events_loc.pres_mgmt.hide__session_msg || !$ae_loc.authenticated_access}
hide={!$ae_loc.manager_access || $events_loc.pres_mgmt.hide__session_msg}
show_edit={false}
show_edit_btn={true}
/>

View File

@@ -718,8 +718,8 @@ $: if ($lq__event_session_obj) {
{#if $events_loc.auth__kv.session[$events_slct.event_session_id] === true}
<span class="text-green-500">Signed In</span>
{/if}
{#if $events_loc.pres_mgmt?.show__email_access_link
&& $lq__event_session_obj.poc_person_primary_email
{#if $events_loc.pres_mgmt?.require__session_agree
&& $lq__event_session_obj?.poc_person_primary_email
&& ($ae_loc.trusted_access || !$events_loc.auth__kv.session[$lq__event_session_obj?.event_session_id_random])
}
@@ -728,11 +728,11 @@ $: if ($lq__event_session_obj) {
on:click={() => {
console.log('Email the access link');
if (!$lq__event_session_obj.poc_person_primary_email) {
alert('No email address found for this presenter.');
alert('No email address found for this point of contact (moderator/champion).');
return;
}
if (confirm(`This will send the sign in email to ${$lq__event_session_obj.poc_person_primary_email}`)) {
console.log('Send the email to the presenter.');
console.log('Send the email to the point of contact (moderator/champion).');
} else {
console.log('Cancelled sending the email.');
return false;