Fix for SF Bug #1725817 Error in authorization to submit when you add collection.

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3338 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Claudia Juergen
2008-12-18 09:41:48 +00:00
parent d22e56554e
commit 4e59dd511c
2 changed files with 4 additions and 1 deletions

View File

@@ -304,7 +304,8 @@ public class Group extends DSpaceObject
loadData(); // make sure Group has data loaded
// don't add if it's already a member
if (isMember(g))
// and don't add itself
if (isMember(g) || getID()==g.getID())
{
return;
}