How to check for admin role membership

publicbool ShowAdminButtons
{
get
{
returnThread.CurrentPrincipal.Identity.IsAuthenticated && User.IsInRole(BlogSettings.Instance.AdministratorRole);
}
}
but that doesn't work in v2.6 anymore - that AdministratorRole is no longer available.

How do I check whether the current user is Admin or not in the current version?