@Override
public boolean isVisible() {
Workspace workspace = PublishingPanel.this.getModelObject();
String state = SitePlugin.get().getWorkspaceState(workspace);
Action action = new PublishWorkspaceAction(Context.ADMINISTRATION, workspace,
targetState);
return requiredState.equals(state) &&
Brix.get().getAuthorizationStrategy().isActionAuthorized(
action);