From e5c98eebb899694ba584cee3ecf627f7756c0214 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Thu, 16 Feb 2017 17:38:37 +0000 Subject: [PATCH] NO_ADMIN_ROLE fixed git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@142660 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/view/ManageProductWidget.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);