def _allows_archive(self, user):
        # Just use the django permission.
        return user.has_perm('wiki.archive_document')
Can the user archive the document?
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/permissions.py/DocumentPermissionMixin._allows_archive