Project

General

Profile

Bug #10918

Updated by Dominic Cleal almost 9 years ago

After upgrading Foreman from 1.7.4 -> 1.7.5, provisioning templates are no longer resolvable/usable for non-admin users trying to provision new machines. 

 It seems "All templates" check box in Organization tab is not being correctly applied when user belong to many Organizations and when user context is set to "Any Organization". 

 Changes in app/models/concerns/taxonomix.rb seem to have caused the regression: 

 <pre> 
 diff app/models/concerns/taxonomix.rb app_1.7.5/models/concerns/taxonomix.rb 
 80c80 
 <         if SETTINGS[:organizations_enabled] && org 
 --- 
 >         if SETTINGS[:organizations_enabled] && org.present? 
 </pre>

Back