v2.2.0 — Choose which user groups see each banner.
New
- Visible to groups. Each banner now has a group picker. Pick Guests (logged-out visitors), Members (anyone logged in), Admins, Mods or any of your own groups, and the banner shows only to people in at least one of them. Leave it empty and it shows to everyone, as before, so existing banners don't change.
- Filtered on the server. A banner someone isn't allowed to see is never sent to their browser.
- Works with "Show only the most specific banner". The most specific banner is chosen among the ones a visitor can see, so a hidden banner never pushes out a general one.
Thanks to JoZ3 for suggesting it.
After updating
Run php flarum cache:clear. There are no database changes in this release.
Update
composer update linkrobins/discussion-banners
Release notes on GitHub: https://github.com/linkrobins/flarum-discussion-banners/releases/tag/v2.2.0
On Packagist: https://packagist.org/packages/linkrobins/discussion-banners