Skip to content

Commit

Permalink
keep sub in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
darrensiegel committed Jan 5, 2025
1 parent 79afeba commit fdb1517
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/oli_web/live/delivery/student/assignments_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule OliWeb.Delivery.Student.AssignmentsLive do
:contains_explorations,
:contains_deliberate_practice
], %Section{}},
current_user: {[:id, :name, :email], %User{}}
current_user: {[:id, :name, :email, :sub], %User{}}
}

def mount(_params, _session, socket) do
Expand Down
2 changes: 1 addition & 1 deletion lib/oli_web/live/delivery/student/learn_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule OliWeb.Delivery.Student.LearnLive do
:contains_deliberate_practice,
:open_and_free
], %Sections.Section{}},
current_user: {[:id, :name, :email], %User{}}
current_user: {[:id, :name, :email, :sub], %User{}}
}

@page_resource_type_id Oli.Resources.ResourceType.get_id_by_type("page")
Expand Down
2 changes: 1 addition & 1 deletion lib/oli_web/live/delivery/student/lesson_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defmodule OliWeb.Delivery.Student.LessonLive do
@required_keys_per_assign %{
section:
{[:id, :slug, :title, :brand, :lti_1p3_deployment, :customizations], %Sections.Section{}},
current_user: {[:id, :name, :email], %User{}}
current_user: {[:id, :name, :email, :sub], %User{}}
}

@default_selected_view :gallery
Expand Down
2 changes: 1 addition & 1 deletion lib/oli_web/live/delivery/student/prologue_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule OliWeb.Delivery.Student.PrologueLive do
section:
{[:id, :slug, :title, :brand, :lti_1p3_deployment, :resource_gating_index, :customizations],
%Sections.Section{}},
current_user: {[:id, :name, :email], %User{}}
current_user: {[:id, :name, :email, :sub], %User{}}
}

def mount(params, _session, socket) do
Expand Down

0 comments on commit fdb1517

Please sign in to comment.