Skip to content

Commit

Permalink
Fix missing 'storages' association on Datacenter
Browse files Browse the repository at this point in the history
When provisioning a Vm as a user that belongs to a group with a
belongs_to filter applying Rbac on storages fails due to a missing
virtual_has_many on the Datacenter base class.
  • Loading branch information
agrare committed Nov 1, 2024
1 parent 1b6bbac commit 05ccbc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ems_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class EmsFolder < ApplicationRecord
virtual_has_many :vms, :uses => :all_relationships
virtual_has_many :miq_templates, :uses => :all_relationships
virtual_has_many :hosts, :uses => :all_relationships
virtual_has_many :storages, :uses => :all_relationships

virtual_attribute :folder_path, :string, :uses => :all_relationships

Expand Down

0 comments on commit 05ccbc7

Please sign in to comment.