Hiding "Logged in as {ROLE}" as discussed

This commit is contained in:
Francesco Mangiacrapa 2024-05-15 09:56:50 +02:00
parent 8281aed5e4
commit b0dc259d6c
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ public class GCubeCkanDataCatalog implements EntryPoint {
public static final String REVERT_QUERY_PARAM = "manage"; public static final String REVERT_QUERY_PARAM = "manage";
public static final String GCUBE_CKAN_IFRAME = "gcube-ckan-iframe"; public static final String GCUBE_CKAN_IFRAME = "gcube-ckan-iframe";
public static final String LOGGED_IN_DIV = "logged_in"; //public static final String LOGGED_IN_DIV = "logged_in";
/** /**
* This is the entry point method. * This is the entry point method.

View File

@ -200,7 +200,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
managementPanel.visibilityEditItemButton(true); managementPanel.visibilityEditItemButton(true);
managementPanel.visibilityDeleteItemButton(true); managementPanel.visibilityDeleteItemButton(true);
managementPanel.enablePublishItemButton(true); managementPanel.enablePublishItemButton(true);
RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.ADMIN)); //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.ADMIN));
break; break;
} }
case EDITOR: { case EDITOR: {
@ -208,7 +208,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
managementPanel.visibilityEditItemButton(true); managementPanel.visibilityEditItemButton(true);
managementPanel.visibilityDeleteItemButton(true); managementPanel.visibilityDeleteItemButton(true);
managementPanel.enablePublishItemButton(true); managementPanel.enablePublishItemButton(true);
RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.EDITOR)); //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.EDITOR));
break; break;
} }
case MEMBER: { case MEMBER: {
@ -218,7 +218,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
// not the rights to publish // not the rights to publish
managementPanel.visibilityPublishItemButton(true, true); managementPanel.visibilityPublishItemButton(true, true);
managementPanel.enablePublishItemButton(false); managementPanel.enablePublishItemButton(false);
RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.MEMBER)); //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.MEMBER));
break; break;
} }
default: { default: {