#NEWLINE# def allows_delete_by( self , user ) : #NEWLINE# #INDENT# if user . is_anonymous ( ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( user == self . user ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( self == self . creator ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if user . has_perm ( 'badger.change_award' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False