From 91f7f899732a5137b4dcd54b21cc81e58acfe536 Mon Sep 17 00:00:00 2001 From: Marcin Lulek Date: Wed, 21 Feb 2018 10:39:13 +0100 Subject: [PATCH] auth: fix regression on cache manage namespace generation in case of external plugins a new users. --- rhodecode/authentication/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py index bd96300f..de1dd030 100644 --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -653,7 +653,7 @@ def authenticate(username, password, environ=None, auth_type=None, # 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)