DEV Community

How to implement Authorization in elixir and phoenix

Haseeb Annadamban on October 06, 2019

In the world of web development, ensuring the security and privacy of user data is paramount. One of the key aspects of this is implementing robust...
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