SPGroupCollection groupColl = SPContext.Current.Web.SiteGroups;
SPGroup grp = groupColl["grp1"];
if (SPContext.Current.Web.IsCurrentUserMemberOfGroup(grp.ID))
GRP = grp1;
else
GRP = "grp2";
SPGroup grp = groupColl["grp1"];
if (SPContext.Current.Web.IsCurrentUserMemberOfGroup(grp.ID))
GRP = grp1;
else
GRP = "grp2";
No comments:
Post a Comment