Hi, I think 'user.groups' is what I want and it is already implemented (I think I'm blind for not seeing it before). LDAPBackend does not support it yet!
Thanks all. On Mon, 14 Sep 2009 13:29:46 -0400, Ulysses Almeida <ulysses.alme...@tre-ms.gov.br> wrote: > > Hi, > > I would like to retrieve all groups an user belong. > > I want to do this 'cos if the user belong to Group1 and GroupAdmin it > will be able to manage the Group1 which he belongs, but not Group2 (for > example). > > ... but I can't figure out how to get user's groups (something link > user.groups being a list of groups), neither how to implement this idea > only with permissions infrastructure. > > I'm using LDAP auth backend (http://code.djangoproject.com/ticket/11526) > , but I don't want to attach my code to a specific auth backend. > > Thanks in advance for any help! > > -- Ulysses Almeida Analista Judiciário - Análise de Sistemas Secretaria de Tecnologia da Informação - COINF - TRE-MS ulysses.alme...@tre-ms.gov.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---