src/main/java/org/efaps/ui/wicket/models/field/factories/HRefFactory.java
private boolean hasAccess2Menu(final AbstractUIField _uiField)
        throws EFapsException
    {
        final Menu menu = Menu.getTypeTreeMenu(_uiField.getInstance().getType());
        return menu != null && menu.hasAccess(_uiField.getParent().getMode(), _uiField.getInstance())
                        && (!((AbstractUIPageObject) _uiField.getParent()).getAccessMap().containsKey(
                                        _uiField.getInstance())
                        || ((AbstractUIPageObject) _uiField.getParent()).getAccessMap().containsKey(
                                        _uiField.getInstance())
                                        && ((AbstractUIPageObject) _uiField.getParent()).getAccessMap().get(
                                                        _uiField.getInstance()));
    }
private boolean hasAccess2Menu(final AbstractUIField _uiField)
        throws EFapsException
    {
        final Menu menu = Menu.getTypeTreeMenu(_uiField.getInstance().getType());
        return menu != null && menu.hasAccess(_uiField.getParent().getMode(), _uiField.getInstance())
                        && (!((AbstractUIPageObject) _uiField.getParent()).getAccessMap().containsKey(
                                        _uiField.getInstance())
                        || ((AbstractUIPageObject) _uiField.getParent()).getAccessMap().containsKey(
                                        _uiField.getInstance())
                                        && ((AbstractUIPageObject) _uiField.getParent()).getAccessMap().get(
                                                        _uiField.getInstance()));
    }
Checks for access to menu.

@param _uiField the ui field
@return true, if successful
@throws EFapsException on error