Project

General

Profile

Actions

Feature #20588

closed

Add host.owner search filter to Fact value resource type

Added by Avram Lubkin over 7 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Be able to assign Fact value permissions (view_facts, upload_facts) based on host owner including "current_user" as found in the Host resource type.

Example:
Resource type: Fact value
Permission: upload_facts
Unlimited: false
Search: host.owner = current_user

Actions #1

Updated by Avram Lubkin over 7 years ago

I did some digging and could see this is defined in app/models/fact_value.rb and the Hosts reference is defined in /app/models/concerns/hostext/search.rb, but I couldn't sort out how to do the joins. Hopefully someone more familiar with it can take a look.

Actions #2

Updated by Marek Hulán over 7 years ago

  • Category set to Facts
Actions #3

Updated by Marek Hulán over 3 years ago

  • Status changed from New to Resolved

I think this should now be possible, please reopen if it does not work

Actions

Also available in: Atom PDF