I assigned user permission in a Django 1.5 application. When I list all user permissions with
In [1]: user.get_all_permissions() Out[1]: set([u'profile.change_profile'])
I see one resolution (which is correct and necessary). The user is also not a superuser, not an administrator.
In [2]: user.is_superuser Out[2]: False
However, if I try to use user.has_perm , I always get True as a return for any permission request sent.
In [3]: user.has_perm('random_permission') Out[3]: True
The behavior that I would expect if the user is superuser / administrator. Why does a non-superuser always get True for every request? Am I missing any settings?
source share