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
This commit is contained in:
Costantino Perciante 2016-05-06 16:18:44 +00:00
parent 2d790c2429
commit 2c31a666b1
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

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