You can use this in your peoplecode to determine if the current logged in user has role assigned to him.
&IND = %Roles.Find("MYROLENAME");
IF &IND <> 0 Then
/* User has this Role */
/* User does not have this Role */
You can also use the peoplecode function IsUserInRole("ROLENAME") to find the same.