Re: Check if user is a member of group in template

2007-10-09 Thread äL
Great. Now it works how I expected. See also http://www.djangoproject.com/documentation/templates_python/#extending-the-template-system for further information. On 9 Okt., 21:38, Ryan Kanno <[EMAIL PROTECTED]> wrote: > I think you're looking for something like this: > > http://www.djangosnipp

Re: Check if user is a member of group in template

2007-10-09 Thread Ryan Kanno
I think you're looking for something like this: http://www.djangosnippets.org/snippets/282/ On Oct 9, 3:22 am, äL <[EMAIL PROTECTED]> wrote: > Inhttp://code.djangoproject.com/wiki/CookBookRequiredGroupLoginI > found how > to show a template only if the user is in a specific group (admin). > > No

Check if user is a member of group in template

2007-10-09 Thread äL
In http://code.djangoproject.com/wiki/CookBookRequiredGroupLogin I found how to show a template only if the user is in a specific group (admin). Now I would like to do the same in a template. How can I hide a link, for example, if the user is not in the admin group? I'm looking for something like