Re: Checking group permissions in template code

2007-05-31 Thread vida
On May 31, 6:18 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 5/31/07, vida <[EMAIL PROTECTED]> wrote: > > > > > After reading the docs and looking for posts relating this problem > > here and in .users, I found no "standard" w

Checking group permissions in template code

2007-05-31 Thread vida
After reading the docs and looking for posts relating this problem here and in .users, I found no "standard" way of checking for a user's group permissions in the templates. So what I did is to add the following method to auth.models.User (yeah, yeah, it *should* be in appname.models.UserProfile)