From 2c31a666b103d37059dbd4c0d19fa55e44b296be Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Fri, 6 May 2016 16:18:44 +0000 Subject: [PATCH] remote service isleavebuttonavailable fixed git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/questions@128513 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/portlets/user/questions/client/VREManagersPanel.java | 2 +- .../portlets/user/questions/server/QuestionsServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/questions/client/VREManagersPanel.java b/src/main/java/org/gcube/portlets/user/questions/client/VREManagersPanel.java index b1df6aa..96f803f 100644 --- a/src/main/java/org/gcube/portlets/user/questions/client/VREManagersPanel.java +++ b/src/main/java/org/gcube/portlets/user/questions/client/VREManagersPanel.java @@ -157,7 +157,7 @@ public class VREManagersPanel extends Composite { public void onSuccess(Boolean result) { leaveVREOption.clear(); leaveVREOption.setHorizontalAlignment(HasAlignment.ALIGN_LEFT); - if(!result) + if(result) addLeaveVREButton(); } diff --git a/src/main/java/org/gcube/portlets/user/questions/server/QuestionsServiceImpl.java b/src/main/java/org/gcube/portlets/user/questions/server/QuestionsServiceImpl.java index 0975704..eacd76f 100644 --- a/src/main/java/org/gcube/portlets/user/questions/server/QuestionsServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/questions/server/QuestionsServiceImpl.java @@ -161,7 +161,7 @@ public class QuestionsServiceImpl extends RemoteServiceServlet implements Questi _log.error("Unable to evaluate if the leave button can be added for the current group " + currSite.getGroupName(), e); } _log.debug("Is Leave button available in vre " + currSite.getGroupName() + " ? " + isMandatory); - return isMandatory; + return !isMandatory; }else return true; } /**