# HG changeset patch # User RhodeCode Admin # Date 2021-07-28 20:28:24 # Node ID ccc5607507592723976bca23bab6b5af9ddaf8e1 # Parent a9d977510ae9ad1031f88db36fd3863cbde5ceb9 permissions: flush all users permissions when creating a new user group. - fixes #5664 diff --git a/rhodecode/apps/admin/views/user_groups.py b/rhodecode/apps/admin/views/user_groups.py --- a/rhodecode/apps/admin/views/user_groups.py +++ b/rhodecode/apps/admin/views/user_groups.py @@ -247,8 +247,7 @@ class AdminUserGroupsView(BaseAppView, D % user_group_name, category='error') raise HTTPFound(h.route_path('user_groups_new')) - affected_user_ids = [self._rhodecode_user.user_id] - PermissionModel().trigger_permission_flush(affected_user_ids) + PermissionModel().trigger_permission_flush() raise HTTPFound( h.route_path('edit_user_group', user_group_id=user_group_id))