Cannot publish content view as non-admin user
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):
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
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"
It should provide feedback as to why it failed.
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