Skip to content

Commit

Permalink
Merge pull request #296 from lpichler/fix_assigning_roles
Browse files Browse the repository at this point in the history
Fix assigning roles in group form
(cherry picked from commit 40f8a76)

https://bugzilla.redhat.com/show_bug.cgi?id=1419686
  • Loading branch information
martinpovolny authored and simaishi committed Feb 9, 2017
1 parent 19c1aae commit f291f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/ops_controller/ops_rbac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,8 @@ def valid_tenant?(tenant_id)
Rbac.filtered(Tenant.in_my_region.where(:id => tenant_id)).present?
end

def valid_role?(group_id)
Rbac::Filterer.filtered(group_id, :class => MiqUserRole).present?
def valid_role?(user_role_id)
Rbac::Filterer.filtered_object(user_role_id, :class => MiqUserRole).present?
end

# Get variables from group edit form
Expand Down

0 comments on commit f291f3c

Please sign in to comment.