Bug #30112
closedContent Hosts has Access to Content View from Different Organization
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1815608
Description of problem:
From the Web UI, I moved a content host from Org A, to Org B via, Hosts => All Hosts, select the host, and select the Assign Organization option. I had to select "Fix Organization on Mismatch" option in order to move the content host to Org B, because Org B did not have that CV. Once the content host was moved, the content host still had access to the content view.
Version-Release number of selected component (if applicable):
Satellite 6.6
How reproducible:
always
Steps to Reproduce:
1. Create 2 Organizations
2. Create a CV on only one organization, and register a content host to that Org with that CV
3. Move the Content Host to the other Org (the one without the CV)
Actual results:
Content Host still has access to the repositories from the old Organization, and can successfully download packages.
Expected results:
Content host should not have access to the content, as its new org does not have that CV.
Additional info: