Bug #11094
Cannot publish content view as non-admin user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1236740
Description of problem:
When trying to publish a content view as a unprivileged user, with limited access it will fail to clone and publish if you cannot view any orgs or locations on the 'default' capsule.
Version-Release number of selected component (if applicable):
Satellite 6.0.8
How reproducible:
Easily
Steps to Reproduce:
1. Create a Organization and Location outside of the defaults.
2. Create user with limited access associated to the Organization and Location. (I have provided ACL list for the user.)
3. Create Content View
4. Publish Content View
Actual results:
Failed to publish with error "Validation failed: Organization ids Invalid organizations selection, you must select at least one of yours, Location ids Invalid locations selection, you must select at least one of yours"
Expected results:
It should provide feedback as to why it failed.
Additional info:
Associated revisions
History
#1
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5350 added
- Pull request deleted (
)
#2
Updated by Eric Helms over 7 years ago
- Legacy Backlogs Release (now unused) set to 31
- Triaged changed from No to Yes
#3
Updated by Justin Sherrill over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|2de120a23ec338f0f03aa5e9bfbc7f9e55c33840.
fixes #11094 - assign default location to new puppet environments
this way non-admin users can create them, as they need to be assigned
to at least one location if a non-admin user creates them
Also fixes a class loading issue seen in development during publish