N2cms display part of the page only for Admins
I need to show links or may be a form, for just the logged admins.
for example to do something like this :
<%if(IsAdmin()){%>
<div>
<a href="" src="BrowseAll"> Show all orders </a>
<div/>
<%}%&开发者_StackOverflow中文版gt;
You can use following check
if (HttpContext.Current.Request.IsAuthenticated && HttpContext.Current.User.IsInRole("Administrators"))
精彩评论