# HG changeset patch # User Marcin Lulek # Date 2018-02-21 09:39:13 # Node ID 994d0fb21d9d93b649f3ca40e3f783b722b23186 # Parent 8c6cd07b3e42ea546d4ebb7aedf55069e51491be 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)