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; } /**