Commit 47274109 authored by Adrian Damian's avatar Adrian Damian
Browse files

Small fix for integration testing

parent cec1067f
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
                                final DN ownerDN, final String description, 
                                final Set<User<? extends Principal>> users, 
                                final Set<Group> groups)
        throws UserNotFoundException, LDAPException, TransientException
        throws UserNotFoundException, LDAPException, TransientException, AccessControlException
    {
        // add new group
        List<Attribute> attributes = new ArrayList<Attribute>();
@@ -751,7 +751,16 @@ public class LdapGroupDAO<T extends Principal> extends LdapDAO
               GroupNotFoundException, UserNotFoundException
    {
        User<T> user = new User<T>(userID);
        DN userDN = userPersist.getUserDN(user);
        DN userDN = null;
        try
        {
            userDN = userPersist.getUserDN(user);
        }
        catch (UserNotFoundException e)
        {
            // no anonymous searches
            throw new AccessControlException("Not authorized to search");
        }
        
        Collection<DN> groupDNs = new HashSet<DN>();
        if (role == Role.OWNER)