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.
3 Likes
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.
1 Like
The Welcome Link Banner has a setting to choose which trust levels will see the banner.
3 Likes
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
).
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.