#NEWLINE# def has_delete_permission( self , request , obj = None ) : #NEWLINE# #INDENT# '\n        Implement a lookup for object level permissions. Basically the same as\n        ModelAdmin.has_delete_permission, but also passes the obj parameter in.\n        ' #NEWLINE# perm = self . object_delete_permission #NEWLINE# if settings . FEINCMS_TREE_EDITOR_OBJECT_PERMISSIONS : #NEWLINE# #INDENT# r = request . user . has_perm ( perm , obj ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# r = request . user . has_perm ( perm ) #NEWLINE# #UNINDENT# return ( r and super ( TreeEditor , self ) . has_delete_permission ( request , obj ) )