Working on adjusting the permissions for session POC. They can upload/download files for the session and each presenter.
This commit is contained in:
@@ -139,7 +139,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
|
|||||||
Manage and Upload Presenter Files:
|
Manage and Upload Presenter Files:
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{#if $ae_loc.trusted_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
{#if $ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
||||||
<Comp_event_files_upload
|
<Comp_event_files_upload
|
||||||
link_to_type="event_presenter"
|
link_to_type="event_presenter"
|
||||||
link_to_id={$lq__event_presenter_obj.event_presenter_id}
|
link_to_id={$lq__event_presenter_obj.event_presenter_id}
|
||||||
@@ -150,7 +150,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
|
|||||||
<Element_manage_event_file_li_wrap
|
<Element_manage_event_file_li_wrap
|
||||||
link_to_type={'event_presenter'}
|
link_to_type={'event_presenter'}
|
||||||
link_to_id={$lq__event_presenter_obj?.event_presenter_id_random}
|
link_to_id={$lq__event_presenter_obj?.event_presenter_id_random}
|
||||||
allow_basic={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
allow_basic={$ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
||||||
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
|
||||||
container_class_li={''}
|
container_class_li={''}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ onMount(() => {
|
|||||||
lq__event_presentation_obj_li={lq__event_presentation_obj_li}
|
lq__event_presentation_obj_li={lq__event_presentation_obj_li}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{:else if $events_loc.pres_mgmt.show_content__session_view == 'manage_files' && $ae_loc.trusted_access}
|
{:else if $events_loc.pres_mgmt.show_content__session_view == 'manage_files' && $ae_loc.public_access}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3 class="h5 text-center">
|
<h3 class="h5 text-center">
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ let ae_triggers: key_val = {};
|
|||||||
class="{ae_snip.classes__events_pres_mgmt_menu__button_special}"
|
class="{ae_snip.classes__events_pres_mgmt_menu__button_special}"
|
||||||
class:variant-filled-primary={$events_loc.pres_mgmt.show_content__session_view == 'manage_files'}
|
class:variant-filled-primary={$events_loc.pres_mgmt.show_content__session_view == 'manage_files'}
|
||||||
class:variant-glass-primary={$events_loc.pres_mgmt.show_content__session_view != 'manage_files'}
|
class:variant-glass-primary={$events_loc.pres_mgmt.show_content__session_view != 'manage_files'}
|
||||||
class:hidden={!$ae_loc.trusted_access}
|
class:hidden={!$ae_loc.public_access}
|
||||||
title="Manage files for the session"
|
title="Manage files for the session"
|
||||||
>
|
>
|
||||||
{#if $events_loc.pres_mgmt.show_content__session_view == 'manage_files'}
|
{#if $events_loc.pres_mgmt.show_content__session_view == 'manage_files'}
|
||||||
|
|||||||
@@ -79,8 +79,9 @@ if (browser) {
|
|||||||
function session_sign_in() {
|
function session_sign_in() {
|
||||||
console.log('Session sign in with URL values');
|
console.log('Session sign in with URL values');
|
||||||
|
|
||||||
|
$ae_loc.access_type = 'public';
|
||||||
|
$ae_loc.public_access = true;
|
||||||
$ae_loc.authenticated_access = true;
|
$ae_loc.authenticated_access = true;
|
||||||
$ae_loc.access_type = 'authenticated';
|
|
||||||
|
|
||||||
$events_loc.auth__person.id = $events_sess.auth__person.id; // person_id
|
$events_loc.auth__person.id = $events_sess.auth__person.id; // person_id
|
||||||
$events_loc.auth__person.person_id = $events_sess.auth__person.id;
|
$events_loc.auth__person.person_id = $events_sess.auth__person.id;
|
||||||
@@ -105,8 +106,10 @@ function presenter_sign_in() {
|
|||||||
|
|
||||||
console.log(event_session_id);
|
console.log(event_session_id);
|
||||||
|
|
||||||
$ae_loc.authenticated_access = true;
|
|
||||||
$ae_loc.access_type = 'authenticated';
|
$ae_loc.access_type = 'authenticated';
|
||||||
|
$ae_loc.public_access = false;
|
||||||
|
$ae_loc.authenticated_access = true;
|
||||||
|
|
||||||
$ae_loc.person_id = $events_sess.auth__person.id;
|
$ae_loc.person_id = $events_sess.auth__person.id;
|
||||||
|
|
||||||
$events_loc.auth__person.id = $events_sess.auth__person.id; // person_id
|
$events_loc.auth__person.id = $events_sess.auth__person.id; // person_id
|
||||||
|
|||||||
Reference in New Issue
Block a user