|
|
|
@ -242,9 +242,7 @@ public class AuthorityToolBarPane<T extends WebContent> extends BasicBeanPane<Re
|
|
|
|
|
for (int i = 0; i < managers.length; i++) { |
|
|
|
|
ToolBar tb = managers[i].getToolBar(); |
|
|
|
|
for (int j = 0; j < tb.getWidgetSize(); j++) { |
|
|
|
|
if (widget instanceof Button && tb.getWidget(j) instanceof Button) { |
|
|
|
|
if (ComparatorUtils.equals(((Button) widget).getIconName(), |
|
|
|
|
((Button) tb.getWidget(j)).getIconName())) { |
|
|
|
|
if (widget instanceof Button && tb.getWidget(j) instanceof Button && ComparatorUtils.equals(((Button) widget).getIconName(), ((Button) tb.getWidget(j)).getIconName())) { |
|
|
|
|
if (!isSelected) { |
|
|
|
|
tb.getWidget(j).getWidgetPrivilegeControl().addInvisibleRole(selectedRole); |
|
|
|
|
} else { |
|
|
|
@ -253,7 +251,6 @@ public class AuthorityToolBarPane<T extends WebContent> extends BasicBeanPane<Re
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
wc.setToolBarManagers(managers); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|