I'm developing a Phoenix App where a logged on user can have one of three roles a, b, c. I'd like to restrict access to some controller functions e..g update, create but also have some functions e.g. list available to anyone. I've looked at Canada but even this seems too complex for my simple needs. I've also thought about using some sort of Plug but not quite sure where to start. So my questions. Is there a simple (plug) based library that would allow me to achieve me aims or a tutorial that might point me in the right direction. I'm sure I'm not the first to have such a requirement.
Any help gratefully received.