#NEWLINE# def has_perms( self , perm_list , obj = None ) : #NEWLINE# #INDENT# '\n        Returns True if the user has each of the specified permissions. If\n        object is passed, it checks if the user has all required perms for this\n        object.\n        ' #NEWLINE# for perm in perm_list : #NEWLINE# #INDENT# if ( not self . has_perm ( self , obj ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True