Re: User .get_all_permissions() vs. .has_perm() inconsistency
On Fri, Feb 10, 2012 at 4:01 PM, dslowik <dslowik@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.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home