How to assign a user administrative rights to areas like Topics, News, sub areas etc.
SPWeb web = SPControl.GetContextWeb(this.Context);
web.Site.CatchAccessDeniedException = false;
try
{
if (web.UserIsWebAdmin || web.UserIsSiteAdmin)
{
output.WriteLine("Hello");
}
}
catch( Exception ex)
{
output.Write(ex.Message);
}
If I drop this web part say in http://serverName/default.aspx, I see the message Hello, but If I drop this web part in areas say Topics( http://serverName/Topics/default.aspx), News etc. I don't see it. But administrator to operating system(super user) see it.
Any suggestions?
Do you know someone who can help? Share a link to this thread on twitter, or facebook.