def _allows_edit_keywords(self, user):
        # If the document is in the default locale, just use the
        # django permission.
        # Editing keywords isn't restricted in other locales.
        return (self.locale != settings.WIKI_DEFAULT_LANGUAGE or
                user.has_perm('wiki.edit_keywords'))
Helper for clearing all the keys in a database. Use with
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/permissions.py/DocumentPermissionMixin._allows_edit_keywords--crossover with--dataset/ETHPy150Open SickRage/SickRage/lib/cachecontrol/caches/redis_cache.py/RedisCache.clear