We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c448e7c commit ed492b7Copy full SHA for ed492b7
lib/karaokium_web/live/admin/performance_live/new.ex
@@ -16,6 +16,6 @@ defmodule KaraokiumWeb.Admin.PerformanceLive.New do
16
|> assign(:performance, %Performance{})
17
|> assign(:page_title, "New Performance")
18
|> assign(:karaoke_id, karaoke_id)
19
- |> assign(:roles, socket.assigns.current_user.permissions)}
+ |> assign(:permissions, socket.assigns.current_user.permissions)}
20
end
21
lib/karaokium_web/live/admin/performance_live/new.html.heex
@@ -1,4 +1,4 @@
1
-<%= if @roles == [] do %>
+<%= if @permissions == [] do %>
2
<.live_component
3
module={KaraokiumWeb.Admin.PerformanceLive.FormComponent}
4
id={:new}
0 commit comments