Project

General

Profile

Actions

Bug #27611

closed

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

Added by Justin Sherrill over 4 years ago. Updated over 4 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 #1

Updated by Justin Sherrill over 4 years ago

  • Related to Bug #27529: Capsule not in the current location won't get sync after publishing a CV successfully. added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/450 added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman-tasks-0.16.1 added
Actions #4

Updated by Justin Sherrill over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Adam Ruzicka over 4 years ago

  • Fixed in Releases foreman-tasks-0.17.0 added
Actions #6

Updated by Adam Ruzicka over 4 years ago

  • Fixed in Releases foreman-tasks-0.15.11 added
Actions

Also available in: Atom PDF