DEV Community

Discussion on: How to implement Authorization in elixir and phoenix

Collapse
 
sergeychechaev profile image
Sergey

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

Collapse
 
haseebeqx profile image
Haseeb Annadamban

Thanks, Fixed it