Sometimes we want to conditionally render elements based on the user having permissions or not. We should implement this somehow. A basic idea: ```elixir = if has_permissions?(@conn, :show, @post) ``` Any thoughts on this?
Sometimes we want to conditionally render elements based on the user having permissions or not. We should implement this somehow.
A basic idea:
Any thoughts on this?