public static bool IsMemberInGroup(string groupName)
{
bool isMember = false; ;
{
bool isMember = false; ;
try
{
isMember = SPContext.Current.Web.IsCurrentUserMemberOfGroup(SPContext.Current.Web.Groups[groupName].ID);
}
catch (Exception ex)
{
{
isMember = SPContext.Current.Web.IsCurrentUserMemberOfGroup(SPContext.Current.Web.Groups[groupName].ID);
}
catch (Exception ex)
{
}
return isMember;
return isMember;
}
No comments:
Post a Comment