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
This commit is contained in:
parent
a864f1e8d5
commit
e5c98eebb8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue