if (!isOptionAvailable(element)) {
return null;
}
CmsElementOptionButton button = new CmsElementOptionButton(this, element);
button.addClickHandler(m_elementClickHandler);
<BUG>button.setEnabled(hasPermissions(element));</BUG>
return button;
}
<BUG>public abstract boolean hasPermissions(CmsContainerPageElement element);</BUG>
public boolean isOptionAvailable(CmsContainerPageElement element) {

if (!isOptionAvailable(element)) {
return null;
}
CmsElementOptionButton button = new CmsElementOptionButton(this, element);
button.addClickHandler(m_elementClickHandler);
return button;
}
public boolean isOptionAvailable(CmsContainerPageElement element) {
