Project

General

Profile

Actions

Bug #27611

closed

Cannot pass in obects to BulkAction that are not within users 'scope'

Added by Justin Sherrill over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman plugin
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

In katello we have an issue where if a user does some content action that should result in a foreman proxy content sync, it will not occur unless the user's context (permissions, location, org) allow the user to see the smart proxy.

It seems that BulkAction is calling 'target_class.where(:id => current_batch)' which uses foreman's default scopes. I don't think that foreman-tasks should be enforcing that, but instead should be using .unscoped to ignore permissions at this layer.


Related issues 1 (0 open1 closed)

Related to Katello - Bug #27529: Capsule not in the current location won't get sync after publishing a CV successfully.ClosedJustin SherrillActions
Actions

Also available in: Atom PDF