Question

I'm wondering why this code section prints out the following:

print "request.user.has_perm('bug_tracking.is_developer'): " + str(request.user.has_perm('bug_tracking.is_developer'))
                    print request.user.get_all_permissions()

request.user.has_perm('bug_tracking.is_developer'): True
set([])

I would expect that request.user.has_perm('bug_tracking.is_developer') returns false if the list of all permissions is empty!?

Was it helpful?

Solution

huups...was a super user ;-)

Superuser status Designates that this user has all permissions without explicitly assigning them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top