Skip to content

Commit

Permalink
#997 Add possibility to skip finished page
Browse files Browse the repository at this point in the history
  • Loading branch information
mellelieuwes committed Nov 14, 2024
1 parent 0aa5b82 commit 1454041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/systems/assignment/external_panel_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ defmodule Systems.Assignment.ExternalPanelController do
String.length(id) <= @id_max_lenght and Regex.match?(@id_valid_regex, id)
end

# FIXME: This is a temporary solution to allow embeds to work
defp has_no_access?(_, %{"embed" => "true"}), do: false

defp has_no_access?(%{external_panel: external_panel}, params) do
external_panel = Atom.to_string(external_panel)
external_panel != get_panel(params)
Expand Down Expand Up @@ -117,5 +120,6 @@ defmodule Systems.Assignment.ExternalPanelController do
defp get_participant(_), do: nil

defp embedded?(%{"entry" => "liss"}), do: true
defp embedded?(%{"embed" => "true"}), do: true
defp embedded?(_), do: false
end

0 comments on commit 1454041

Please sign in to comment.