Best way to access user_id inside changeset methods and data models

I leave all authorization logic to the context like here Should user permissions / data correctness logic live in my Ecto validations or Context logic? - #2 by idi527 and raise if something is wrong.

2 Likes