}
}
private void checkPermission(BeanManager beanManager, FacesContext facesContext)
{
ViewConfigDescriptor entry = ViewConfigCache.getViewConfigDescriptor(facesContext.getViewRoot().getViewId());
if(entry == null)
{
return;
}
try
{
Class<? extends ViewConfig> errorView = null;
if(entry instanceof EditableViewConfigDescriptor)
{
errorView = ((EditableViewConfigDescriptor)entry).getErrorView();
}
invokeVoters(null, beanManager, entry.getAccessDecisionVoters(), errorView);
}
catch (AccessDeniedException accessDeniedException)
{
tryToHandleSecurityViolation(accessDeniedException);
facesContext.renderResponse();