Hello. Is it possible to check if current user belongs to specified group (etc)? I know this is possible with SharePoint, but what aboutSharePoint Foundation 2010. Does SharePoint foundation allow me to do something like this:
SPWeb theSite = SPControl.GetContextWeb(Context);
SPUser theUser = theSite.CurrentUser;
string strUserName = theUser.LogonName;
Basically I would like to know if user is member of a certain group and use this information to redirect him/her if necessary.