# HG changeset patch # User Marcin Lulek # Date 2018-02-21 09:39:13 # Node ID 8c63a904d74a6fda4b2b29d5db43ab86d668a64e # Parent aff7e7b8ad69d7630d6823da3a9005b5659e1bff auth: fix regression on cache manage namespace generation in case of external plugins a new users. diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -653,7 +653,7 @@ def authenticate(username, password, env # get instance of cache manager configured for a namespace cache_manager = get_auth_cache_manager( - custom_ttl=cache_ttl, suffix=user.user_id) + custom_ttl=cache_ttl, suffix=user.user_id if user else '') log.debug('AUTH_CACHE_TTL for plugin `%s` active: %s (TTL: %s)', plugin.get_id(), plugin_cache_active, cache_ttl)