protected void renderButtons(boolean administratorMode) {
UserStatus userStatus = UserStatus.lookup();
PanelSession status = panel.getPanelSession();
SectionRegion sectionRegion = panel.getSection().getSectionRegion(panel.getRegion().getId());
PanelPermission editPanelPerm = PanelPermission.newInstance(panel, PanelPermission.ACTION_EDIT);
PanelPermission minPanelPerm = PanelPermission.newInstance(panel, PanelPermission.ACTION_MINIMIZE);
PanelPermission maxPanelPerm = PanelPermission.newInstance(panel, PanelPermission.ACTION_MAXIMIZE);
boolean userCanEditPanel = userStatus.hasPermission(editPanelPerm);
boolean userCanMinimizePanel = userStatus.hasPermission(minPanelPerm);
boolean userCanMaximizePanel = userStatus.hasPermission(maxPanelPerm);
boolean columnRegion = panel.getRegion().isColumnRegion();
setAttribute("panelId", panel.getPanelId());