Can we target trust levels within a theme component? I want to display an alert for users who have lower trust levels and don’t yet have specific permissions but for it to go away once they level up.
This would be a great idea to have as a theme (component).
On many forums I am active in there are restrictions (for example, TL1 is required to make topics) so it would be nice to have as a dismissible banner, alert, etc. built into the theme.
The Welcome Link Banner has a setting to choose which trust levels will see the banner.
Moin showed a good example. Depending on where you try to access the user’s data, you might need to access it differently, though. Here, it’s a glimmer component, and a service is defined above (@service currentUser).