Hi David,
You should study the code of existing features and you will see many places where we check roles and other common tasks.
For the current user you can use
if(WebUser.IsInRoles(semicolonseparatedlistofallowedroles))
{ // do something}
Hope it helps,
Joe