cancel
Showing results for 
Search instead for 
Did you mean: 

Possible misconception in AuthorityService

gandrez
Champ in-the-making
Champ in-the-making
Hi all!  Smiley Happy

I'm using Alfresco 2.0 CE. I'm trying to get immediate parents of a certain user, and in order to do that I'm calling authorityService.getContainingAuthorities(AuthorityType.GROUP, username, true).
However, what I'm getting is immediate parents of that user, as well as their immediate parents.

Example:

Uprava(group)
|—Centrala(group)
     |——Sektor(group)
          |———User1(user)

and

Uprava(group)
|—Centrala(group)
     |——Direktori(group)
          |———User1(user)

and the result is
Sektor, Direktori, CENTRALA, instead of Sektor, Direktori.

Am I doing something wrong?

Thanks in advance,

Dragan
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

Please check your user is not also a member of the other group.
If not, then raise this as a bug.

Andy

gandrez
Champ in-the-making
Champ in-the-making
Hi Andy!

The user is not a member of Centrala group. It's not an isolated case, it happens to whichever user I try to get immediate parents for.

I have raised an issue on jira as you advised:

http://issues.alfresco.com/browse/AR-1510

Best regards,

Dragan

andy
Champ on-the-rise
Champ on-the-rise
Hi

This should now be fixed.

Andy