Conditionally renders content based on a user's permission map.
Expects user.staff.role.permissions to be a map of %{scope => [action]}.
Example
<.ensure_permissions user={@current_user} permissions=%{users: ["read"]}>
<.button>Ver utilizadores</.button>
</.ensure_permissions>
Summary
Functions
Returns true when the user has all required permissions.