Maybe you're logged in with a superuser, superuser can do everything :)

On Mon, May 10, 2010 at 3:52 PM, zweb <[email protected]> wrote:

> I displayed following values in my html template. I am running it on
> wsgi, python 2.5 and Django 1.1.1 on webfaction.
> {{perms.user}}    Value displayed: set([])
> {{perms.core}}    Value displayed: set([])
> {{perms.core.add_project}}   Value Displayed: True ( BUG: should be
> false as perms.user and perms.core are both empty}
>
>
> I also tried by adding a permission view_project. perms.user and
> perms.core displayed that permission but perms.core.add_project still
> returned true.
>
> I have following in my settings.py
>
> MIDDLEWARE_CLASSES = (
>
>   'django.middleware.common.CommonMiddleware',
>   'django.contrib.sessions.middleware.SessionMiddleware',
>   'django.contrib.auth.middleware.AuthenticationMiddleware',
>   'django.middleware.doc.XViewMiddleware',
> )
>
> AUTHENTICATION_BACKENDS = (
>    'django.contrib.auth.backends.ModelBackend',
>  )
>
>
> It works fine on my Mac laptop using Django test server.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Alisson Patrício
http://alisson.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to