# HG changeset patch # User Marcin Kuzminski # Date 2017-10-12 20:38:04 # Node ID 94d9c7f176d5485dc4cab0b135e5a587e5c0de57 # Parent 41032fb666fba8d84ea6bb1b44eb749520b61238 caches: clear perms cache manager while updating settings for auth plugins diff --git a/rhodecode/authentication/views.py b/rhodecode/authentication/views.py --- a/rhodecode/authentication/views.py +++ b/rhodecode/authentication/views.py @@ -27,7 +27,7 @@ from pyramid.renderers import render from pyramid.response import Response from rhodecode.authentication.base import ( - get_auth_cache_manager, get_authn_registry) + get_auth_cache_manager, get_perms_cache_manager, get_authn_registry) from rhodecode.lib import auth from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator from rhodecode.model.forms import AuthSettingsForm @@ -168,6 +168,10 @@ class AuthSettingsView(object): cache_manager = get_auth_cache_manager() cache_manager.clear() + + cache_manager = get_perms_cache_manager() + cache_manager.clear() + self.request.session.flash( _('Auth settings updated successfully.'), queue='success')