SF Patch #1543969: "Special" Groups inside Groups - fix to SF bug #1543966

git-svn-id: http://scm.dspace.org/svn/repo/trunk@1585 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Tim Donohue
2006-09-01 15:39:56 +00:00
parent fcc0d24768
commit 6d9883d619

View File

@@ -441,6 +441,12 @@ public class Group extends DSpaceObject
tri.close();
// Also need to get all "Special Groups" user is a member of!
// Otherwise, you're ignoring the user's membership to these groups!
Group[] specialGroups = c.getSpecialGroups();
for(int j=0; j<specialGroups.length;j++)
groupIDs.add(new Integer(specialGroups[j].getID()));
// now we have all owning groups, also grab all parents of owning groups
// yes, I know this could have been done as one big query and a union,
// but doing the Oracle port taught me to keep to simple SQL!