Bug #6829
closedUnable to delete repositories once published
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1091982
Description of problem:
Unable to delete repositories once published.
From /var/log/foreman/production.log
Processing by Katello::Api::V2::RepositoriesBulkActionsController#destroy_repositories as JSON
Parameters: {"ids"=>[193], "organization_id"=>"ACME_Corporation", "api_version"=>"v2", "repositories_bulk_action"=>{"ids"=>[193]}}
Katello::Errors::SecurityViolation: User admin is not allowed to access katello/api/v2/repositories_bulk_actions/destroy_repositories
Completed 403 Forbidden in 26ms (Views: 0.3ms | ActiveRecord: 4.1ms)
Version-Release number of selected component (if applicable):
Sat6-Beta-Snap2-Compose2
How reproducible:
Steps to Reproduce:
1.create repo and sync
2. attach/add to CV and publish
3. Unable to remove a repository once published
Actual results:
Unable to remove a repository once published and we get the below message:
"User admin is not allowed to access katello/api/v2/repositories_bulk_actions/destroy_repositories"
Expected results:
Need a help tip similar to product and "Remove Repository" needs to be greyed out similar to "Remove Products" once that particular repo is published.
Additional info: