Replaced assertion with custom role provider.