PhoenixKit 1.3.1: Role changes apply without logging the user out
PhoenixKit 1.3.1 changes what happens when an admin changes someone’s roles. The user used to be logged out of every session; now their open pages pick up the new roles straight away and they stay signed in.
A user who loses admin rights while on an admin page is sent away from it at once with a message. Access errors now say which case applies: “You must log in to access this page.” or “You do not have the required role to access this page.” Flash messages also show above other page elements instead of behind them.
PhoenixKit 1.3.1. Install or update: {:phoenix_kit, "~> 1.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.