From 8b2e1b561534a7286da8178815446d1f9fecb6b3 Mon Sep 17 00:00:00 2001 From: lpichler Date: Mon, 30 Jan 2017 11:49:00 +0100 Subject: [PATCH] Add list of roles to RBAC in tree --- app/presenters/tree_builder_ops_rbac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presenters/tree_builder_ops_rbac.rb b/app/presenters/tree_builder_ops_rbac.rb index 1a37b899ef1f..d1112eaced2a 100644 --- a/app/presenters/tree_builder_ops_rbac.rb +++ b/app/presenters/tree_builder_ops_rbac.rb @@ -51,7 +51,7 @@ def x_get_tree_custom_kids(object_hash, count_only, _options) case object_hash[:id] when "u" then Rbac.filtered(User.in_my_region) when "g" then Rbac.filtered(MiqGroup.non_tenant_groups_in_my_region) - when "ur" then MiqUserRole.all + when "ur" then Rbac.filtered(MiqUserRole.all) when "tn" then Tenant.with_current_tenant end count_only_or_objects(count_only, objects, "name")