On Fri, Feb 10, 2012 at 4:01 PM, dslowik <dslo...@tellink.net> wrote: >>>> u.get_all_permissions() > set([u'wb.delete_libraryitem', u'wb.change_libraryitem']) >>>> u.has_perm("wb.change_libraryitem") > True > > ...Shouldn't that be False?
Why would it be False? get_all_permissions: Returns a set of permission strings that the user has.... has_perm: Returns True if the user has the specified permission. https://docs.djangoproject.com/en/1.2/topics/auth/#django.contrib.auth.models.User.get_all_permissions -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.