@if (UserContext.IsAuthenticated && UserContext.HasRight(RightsCatalog.ContactsView))
{
All Contacts
}
@if (UserContext.IsAuthenticated && UserContext.HasRight(RightsCatalog.ContactsCreate))
{
Add New Contact
}
@if (UserContext.IsAuthenticated && (UserContext.HasRight(RightsCatalog.AdminManageUsers) || UserContext.HasRight(RightsCatalog.AdminManageGroups) || UserContext.HasRight(RightsCatalog.AdminManageRights)))
{
Users
Groups
History
}
@if (UserContext.IsAuthenticated)
{
@UserContext.CurrentUser?.UserName
Logout
}
else
{
Login
}