public class CmsToolbarEditButton extends A_CmsToolbarOptionButton {
public CmsToolbarEditButton(CmsContainerpageHandler handler) {
super(I_CmsButton.ButtonData.EDIT, handler);
}
@Override
<BUG>public boolean hasPermissions(CmsContainerPageElement element) {
return CmsStringUtil.isEmptyOrWhitespaceOnly(element.getNoEditReason());

}</BUG>
@Override

public class CmsToolbarEditButton extends A_CmsToolbarOptionButton {
public CmsToolbarEditButton(CmsContainerpageHandler handler) {
super(I_CmsButton.ButtonData.EDIT, handler);
}
@Override
public CmsElementOptionButton createOptionForElement(CmsContainerPageElement element) {
CmsElementOptionButton button = super.createOptionForElement(element);
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(element.getNoEditReason())) {
button.disable(element.getNoEditReason());
}
return button;
}
@Override
