Project

General

Profile

Actions

Bug #30555

closed

Authorizer is unable to handle association mismatch

Added by Ondřej Ezr over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Authorizer is not able to handle situations of filter being defined for association that is defined on Host::Managed, if association to the Host is to the Host::Base

Example:

Filter( permissions: ['view_hosts'], search: 'os = Debian' )
Authorizer#find_collection(Host, permission: :view_hosts, joined_on: FactValue)

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #30681: Filter on fact value is not working properly when FactValue has some default loadsClosedOndřej EzrActions
Has duplicate Foreman - Bug #29011: Adding search for Operating system in role's host filter with permission view_hosts does not construct SQL query when API is usedDuplicateOndřej EzrActions
Actions

Also available in: Atom PDF