'Can the user delete a document\'s revisions?'

def _allows_delete_revision(self, user):

    locale = self.locale
    if (_is_leader(locale, user) or _is_reviewer(locale, user)):
        return True
    return user.has_perm('wiki.delete_revision')
