Hiding "Logged in as {ROLE}" as discussed
This commit is contained in:
parent
8281aed5e4
commit
b0dc259d6c
|
@ -27,7 +27,7 @@ public class GCubeCkanDataCatalog implements EntryPoint {
|
|||
public static final String REVERT_QUERY_PARAM = "manage";
|
||||
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.
|
||||
|
|
|
@ -200,7 +200,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
|
|||
managementPanel.visibilityEditItemButton(true);
|
||||
managementPanel.visibilityDeleteItemButton(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;
|
||||
}
|
||||
case EDITOR: {
|
||||
|
@ -208,7 +208,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
|
|||
managementPanel.visibilityEditItemButton(true);
|
||||
managementPanel.visibilityDeleteItemButton(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;
|
||||
}
|
||||
case MEMBER: {
|
||||
|
@ -218,7 +218,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
|
|||
// not the rights to publish
|
||||
managementPanel.visibilityPublishItemButton(true, true);
|
||||
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;
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Reference in New Issue