Skip to content

Commit

Permalink
Restrict list of roles by RBAC
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jan 30, 2017
1 parent 4534348 commit 1b7d5bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/ops_controller/ops_rbac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ def rbac_group_set_form_vars
# Build roles hash
@edit[:roles]["<Choose a Role>"] = nil if @record.id.nil?
MiqUserRole.all.each do |r|
Rbac::Filterer.filtered(MiqUserRole).each do |r|
@edit[:roles][r.name] = r.id
end
if @group.miq_user_role.nil? # If adding, set to first role
Expand Down

0 comments on commit 1b7d5bd

Please sign in to comment.