summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/live/post_live/show.ex
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-13 13:13:41 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-13 13:13:41 -0600
commit77d572796ca940e3eb5edd1192f8cd127286284e (patch)
tree228d42c390ce68e57b8cd432d88dd57215c02771 /lib/aggiedit_web/live/post_live/show.ex
parent9d5a369ff6aa2dc3a80f104ffdc622ddf594a725 (diff)
downloadaggiedit-77d572796ca940e3eb5edd1192f8cd127286284e.tar.gz
aggiedit-77d572796ca940e3eb5edd1192f8cd127286284e.zip
Update roles and list posts from room
Diffstat (limited to 'lib/aggiedit_web/live/post_live/show.ex')
-rw-r--r--lib/aggiedit_web/live/post_live/show.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aggiedit_web/live/post_live/show.ex b/lib/aggiedit_web/live/post_live/show.ex
index 748c6ea..ea9c134 100644
--- a/lib/aggiedit_web/live/post_live/show.ex
+++ b/lib/aggiedit_web/live/post_live/show.ex
@@ -24,7 +24,7 @@ defmodule AggieditWeb.PostLive.Show do
|> assign(:page_title, page_title(socket.assigns.live_action))
|> assign(:post, post)}
else
- {:noreply, socket |> put_flash(:error, "You don't have permission to do that.") |> redirect(to: Routes.post_show_path(socket, :index))}
+ {:noreply, socket |> put_flash(:error, "You don't have permission to do that.") |> redirect(to: Routes.post_show_path(socket, post))}
end
end