diff --git a/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/client/view/ManageProductWidget.java b/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/client/view/ManageProductWidget.java index d35810e..7a88860 100644 --- a/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/client/view/ManageProductWidget.java +++ b/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/client/view/ManageProductWidget.java @@ -90,8 +90,8 @@ public class ManageProductWidget extends Composite{ protected static final String ERROR_ON_RETRIEVING_BEAN = "It seems there was a problem while contacting the service..."; protected static final String NO_GRSF_RECORD_BEAN = "This item is not a GRSF record, thus it cannot be managed"; - protected static final String ERROR_ON_ROLE_CHECK = "Sorry but the service was not able to check if you have the rights to manage an item." - + " You are suggested to contact the VRE Manager."; + protected static final String NO_ADMIN_ROLE = "Sorry but it seems you do not have the rights to manage items." + + " You are suggested to contact the VRE Manager if something is wrong."; private ManageProductBean bean; public ManageProductWidget(String productIdentifier) { @@ -124,7 +124,7 @@ public class ManageProductWidget extends Composite{ if(!result){ - showInfo(ERROR_ON_ROLE_CHECK, AlertType.ERROR); + showInfo(NO_ADMIN_ROLE, AlertType.ERROR); // hide the form and disable the send button formUpdate.setVisible(false); @@ -183,7 +183,7 @@ public class ManageProductWidget extends Composite{ @Override public void onFailure(Throwable caught) { - showInfo(ERROR_ON_ROLE_CHECK, AlertType.ERROR); + showInfo(NO_ADMIN_ROLE, AlertType.ERROR); // hide the form and disable the send button formUpdate.setVisible(false);