def _allows_delete(self, user):
        # Locale leaders can delete documents in their locale.
        locale = self.locale
        if _is_leader(locale, user):
            return True

        # Fallback to the django permission.
        return user.has_perm('wiki.delete_document')
Return whether the repository supports hidden changesets.
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/permissions.py/DocumentPermissionMixin._allows_delete--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/clients/mercurial.py/MercurialClient.hidden_changesets_supported