def check_role(username, role):
 return (role in get_roles(username))

def check_role ( username , role ) : return ( role in get_roles ( username ) )
check if user is assigned a specific role on switch .