views:

44

answers:

1

I have an app that makes user of filtering certain things for users with different permissions.

Django 1.1 does for some reason not seem to recognize these.

I have a group called corporate and permissions are granted as needed.

now in my template I am render the following.

{% if perms.corporate %}
...show the following
{% else %}
... show something else
{% endif %}

why is this not rendering the info I want?

+2  A: 

perms.corporate proxies to User.has_module_perms('corporate'). So you need to have a module (or app) labeled corporate. You say your current corporate is a group, so this probably won't work.

muksie
thanks, yeah I was trying to go the wrong route.So is there anyway that you can call the `Group` instead of the permissions? or is this the wrong route I might be taking?
ApPeL