File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def allowed_paths(system = nil)
87
87
allowed_product_classes = ( active_product_classes & access_policies_yml . keys )
88
88
if system && system . hybrid?
89
89
# if the system is hybrid => check if the non free product subscription is still valid for accessing images
90
- allowed_non_free_product_classes = allowed_product_classes . map { |s | s unless Product . find_by ( product_class : s ) . free? }
90
+ allowed_non_free_product_classes = allowed_product_classes . map { |s | s unless Product . find_by ( product_class : s , product_type : 'extension' ) . free? } . compact
91
91
unless allowed_non_free_product_classes . empty?
92
92
auth_header = {
93
93
'HTTP_AUTHORIZATION' => ActionController ::HttpAuthentication ::Basic . encode_credentials ( system . login , system . password )
Original file line number Diff line number Diff line change 194
194
system
195
195
end
196
196
let ( :product1 ) do
197
- product = FactoryBot . create ( :product , :with_mirrored_repositories )
197
+ product = FactoryBot . create ( :product , :with_mirrored_repositories , :extension )
198
198
product . repositories . where ( enabled : false ) . update ( mirroring_enabled : false )
199
199
product . update ( product_class : 'SLES15-SP4-LTSS-X86' )
200
200
product
You can’t perform that action at this time.
0 commit comments