Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruioliveira02 committed Nov 11, 2024
1 parent bfb143d commit dce8fe8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/safira_web/plugs/user_roles.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule SafiraWeb.UserRoles do
"""
use SafiraWeb, :verified_routes

import SafiraWeb.Gettext
use Gettext, backend: SafiraWeb.Gettext

import Plug.Conn
import Phoenix.Controller
Expand Down
10 changes: 5 additions & 5 deletions lib/safira_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ defmodule SafiraWeb.Router do
live "/scanner", ScannerLive.Index, :index

scope "/app", App do
pipe_through [:require_attendee_user, :backoffice_enabled]
pipe_through [:require_attendee_user]

live "/waiting", WaitingLive.Index, :index

pipe_through [:backoffice_enabled]

scope "/credential", CredentialLive do
pipe_through [:require_no_credential]
Expand All @@ -85,10 +89,6 @@ defmodule SafiraWeb.Router do

pipe_through [:require_credential]

live "/waiting", WaitingLive.Index, :index

pipe_through [:require_credential]

live "/", HomeLive.Index, :index

live "/credential", CredentialLive.Index, :index
Expand Down
7 changes: 7 additions & 0 deletions test/safira_web/live/user_registration_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ defmodule SafiraWeb.UserRegistrationLiveTest do
import Phoenix.LiveViewTest
import Safira.AccountsFixtures

alias Safira.Constants

setup do
Constants.set("start_time", "2024-09-29T15:00:00Z")
:ok
end

describe "Registration page" do
test "renders registration page", %{conn: conn} do
{:ok, _lv, html} = live(conn, ~p"/users/register")
Expand Down

0 comments on commit dce8fe8

Please sign in to comment.