optimized code

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@100613 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-10-10 15:27:52 +00:00
parent c0514941fc
commit d9190b42ad
1 changed files with 2 additions and 2 deletions

View File

@ -226,8 +226,8 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
*/
if (isInfrastructureScope()) {
//VRE Feeds
for (Organization org : currUser.getOrganizations()) {
GroupManager gm = new LiferayGroupManager();
for (Organization org : currUser.getOrganizations()) {
if (gm.isVRE(org.getOrganizationId()+"")) {
String vreid = gm.getScope(""+org.getOrganizationId()); //get the scope
_log.trace("Reading feeds for VRE: " + vreid);