/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
bool isMember = false; SPWeb oWeb = SPContext.Current.Web; isMember = web.IsCurrentUserMemberOfGroup(web.Groups["Your Group"].ID); // Check If user belong to your group. if (isMember==false) { //Redirect to AccessdDenied.aspx }