Actions
Bug #21465
closedSetting owner does not work under non-admin user in some taxonomy
Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
The host owner association is polymorphic belongs_to and in case we're in specific Organization, it applies default scope from Taxonomix, therefore it can't find owner by just calling self.owner. This causes problems in Katello when register content host in a specific org.
The issue can be probably reproduced also in core, make sure a host is owner by e.g. admin who's not in any organization, then under user in specific org/loc try to edit it. The before_validation fitler that sets the owner will fail to find self.owner even though self.owner_id is 3 and self.owner_type is admin.
The similar fix like for #16363 should help
Updated by Marek Hulán almost 7 years ago
- Related to Bug #16363: "Unknown member type" error when deleting or editing usergroups with users from different locations added
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4954 added
Updated by Marek Hulán almost 7 years ago
- Target version changed from 1.16.0-RC1 to 1.16.2
Updated by Marek Hulán over 6 years ago
- Target version changed from 1.16.2 to 1.16.1
Updated by Marek Hulán over 6 years ago
- Target version changed from 1.16.1 to 238
Updated by Marek Hulán over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 1fa1007026589707fbaa366a735f5659e8279664.
Updated by Daniel Lobato Garcia over 6 years ago
- Translation missing: en.field_release set to 296
Updated by Marek Hulán over 6 years ago
- Translation missing: en.field_release changed from 296 to 330
Actions