Skip to content

Commit

Permalink
Add list of roles to RBAC in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jan 30, 2017
1 parent 34ee860 commit 8b2e1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder_ops_rbac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8b2e1b5

Please sign in to comment.