Re: Checking group permissions in template code

2007-05-31 Thread Russell Keith-Magee
On 6/1/07, vida <[EMAIL PROTECTED]> wrote: > > On May 31, 6:18 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> > > If you're asking a "How do I do this" questions, django-users is the > > place to do it. > > I meant to CC this group when I posted to users. > > It's both a *how do I do this?*, and a

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" way of checking for a > > user's group permissions in the

Re: Checking group permissions in template code

2007-05-31 Thread Russell Keith-Magee
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" way of checking for a > user's group permissions in the templates. Double posting to two groups like this is _really_ bad form. On top of

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)