SPUserToken userToken = SPContext.Current.Web.CurrentUser.UserToken;
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite(weburl, userToken))
{
using (SPWeb web = site.OpenWeb())
{
SPGroup group = web.SiteGroups[];
if (!web.IsCurrentUserMemberOfGroup(group.ID))
{
}
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite(weburl, userToken))
{
using (SPWeb web = site.OpenWeb())
{
SPGroup group = web.SiteGroups[
if (!web.IsCurrentUserMemberOfGroup(group.ID))
{
}
No comments:
Post a Comment