Archive for June, 2011

Django: Checking If A User Is In A Group

0

Adding to my earlier post on the django permission system:

You can check if a user is part of a group using this simple snippet. It will allow you to check if a user is in a group with the following template syntax:


{% if user|in_group:"Friends,Enemies" %}