#NEWLINE# def has_perm( self , perm , obj = None ) : #NEWLINE# #INDENT# '\n        Returns True if the user has the specified permission. This method\n        queries all available auth backends, but returns immediately if any\n        backend returns True. Thus, a user who has permission from a single\n        auth backend is assumed to have permission in general. If an object is\n        provided, permissions for this specific object are checked.\n        ' #NEWLINE# if ( obj . is_active and self . is_superuser ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return _user_has_perm ( self , perm , obj )