Skip to content

Commit 0c02479

Browse files
committed
fix specs
1 parent e7f22e1 commit 0c02479

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/ops_controller/ops_rbac.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ def rbac_edit_save_or_add(what, rbac_suffix = what)
717717

718718
case key
719719
when :user
720+
return unless load_edit("rbac_#{what}_edit__#{id}", "replace_cell__explorer")
720721
record = @edit[:user_id] ? User.find_by(:id => @edit[:user_id]) : User.new
721722
validated = rbac_user_validate?
722723
rbac_user_set_record_vars(record)
@@ -726,6 +727,7 @@ def rbac_edit_save_or_add(what, rbac_suffix = what)
726727
rbac_group_set_record_description_role(record) # Set new Description, Role and Tenant for a new Group
727728
rbac_group_set_record_vars(record) if validated
728729
when :role then
730+
return unless load_edit("rbac_#{what}_edit__#{id}", "replace_cell__explorer")
729731
record = @edit[:role_id] ? MiqUserRole.find_by(:id => @edit[:role_id]) : MiqUserRole.new
730732
validated = rbac_role_validate?
731733
rbac_role_set_record_vars(record)

0 commit comments

Comments
 (0)