Fixed custom view condition in SecurityContext.