# HG changeset patch # User RhodeCode Admin # Date 2023-01-31 10:22:10 # Node ID dbc52491814034740dcb75aed6c6e0e06c8bdfe1 # Parent 862a2784ee729064302390bb534915877311790d repos: only flush permissions for owner on creation. The repo creation task flushes ALL and can be done async diff --git a/rhodecode/apps/admin/views/repositories.py b/rhodecode/apps/admin/views/repositories.py --- a/rhodecode/apps/admin/views/repositories.py +++ b/rhodecode/apps/admin/views/repositories.py @@ -242,7 +242,8 @@ class AdminReposView(BaseAppView, DataGr repo_name = form_result.get('repo_name_full') - PermissionModel().trigger_permission_flush() + affected_user_ids = [self._rhodecode_user.user_id] + PermissionModel().trigger_permission_flush(affected_user_ids) raise HTTPFound( h.route_path('repo_creating', repo_name=repo_name,