Project

General

Profile

Actions

Bug #10918

closed

Provisioning templates no longer resolve/available for non-admin users in Foreman 1.7.5

Added by Tomasz Nowak almost 9 years ago. Updated almost 7 years ago.

Status:
Feedback
Priority:
High
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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:

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?

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #9947: CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membershipClosedMarek Hulán03/30/2015Actions
Actions

Also available in: Atom PDF