Content view Update allows any valid repository ids to be added
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1134057
Description of problem:
Currently PUT /api/v2/content_views/:id/ takes a lit of repository ids. These ids are not validated to be only Library ids. As a result a user can post anyt valid repo id (including repositories that are not in library.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Issue a PUT request to a content view: /api/v2/content_views/:id/ specifying ids for repositories in another org for example.
Alternatively you can use hammer to assign repos using their ids as well on the 'hammer content-view update' command.
Any repo can be added.
Repos that are not in Library within the same org should not be able to be added.