#NEWLINE# def _allows_delete_revision( self , user ) : #NEWLINE# #INDENT# "Can the user delete a document's revisions?" #NEWLINE# locale = self . locale #NEWLINE# if ( _is_leader ( locale , user ) or _is_reviewer ( locale , user ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return user . has_perm ( 'wiki.delete_revision' )