loading...

re: How to implement Authorization in elixir and phoenix VIEW POST

FULL DISCUSSION
 

There is confusion at the beginning of the article.
I think you need to replace:

if(user.id == post.id) do

if(user.id == post.user_id) do

 
code of conduct - report abuse