Visibility based on role

In Razden Blazor Studio you can restrict page access by role. However a user that doesn't have permission to a page still sees the nav option, eg in the profile dropdown they still see the Users and Roles options.

Is there a way to hide options that users don't have access to?

Here is how to do this: Visible=@(Security.IsInRole("YourRole")

Sorry I’m new to this, can you tell me where this code should go please?

Excellent, thanks for your help.