From 39083b0c31b49c5b65e1e212a14a10382d5f662b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Z=C3=A1zrivec?= Date: Tue, 5 Nov 2019 11:06:11 +0100 Subject: [PATCH] Merge pull request #6374 from d-m-u/fixing_user_group_being_wrong_in_tree Force user group reload after changing permissions so tree is correct (cherry picked from commit 97340d5d2125d2f003cb6a8f5e012c342409773e) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1770938 --- app/controllers/ops_controller/ops_rbac.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/ops_controller/ops_rbac.rb b/app/controllers/ops_controller/ops_rbac.rb index afb6f872b7e..da50f7acb63 100644 --- a/app/controllers/ops_controller/ops_rbac.rb +++ b/app/controllers/ops_controller/ops_rbac.rb @@ -1372,6 +1372,7 @@ def rbac_role_set_record_vars(role) def populate_role_features(role) role.miq_product_features = MiqProductFeature.find_all_by_identifier(rbac_compact_features(@edit[:new][:features])) + User.current_user.reload end # Validate some of the role fields