Project

General

Custom queries

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 10 years ago. Updated over 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
#1

Updated by Dominic Cleal almost 10 years ago

  • Description updated (diff)
  • Category set to Organizations and Locations
#3

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #9947: CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membership added
#6

Updated by Anonymous over 7 years ago

  • Status changed from New to Feedback
Actions

Also available in: Atom PDF