{
SPSite _objSite;
SPWeb _objWeb;
bool flag = true;
string _siteUrl = SPContext.Current.Site.Url;
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (_objSite = new SPSite(_siteUrl))
{
using (_objWeb = _objSite.OpenWeb())
{
if (_objWeb.SiteGroups.Cast
{
flag = false;
}
}
}
}); return flag;
}
No comments:
Post a Comment