Revision 40825a11
Added by Marek Hulán over 4 years ago
app/controllers/containers_controller.rb | ||
---|---|---|
100 | 100 |
|
101 | 101 |
def container_deletion |
102 | 102 |
# TODO: Refactor to recognize params[:compute_resource_id] as well. |
103 |
compute_resource_id = params[:compute_resource_id].tap { |id| id.present? ? id : nil }
|
|
103 |
compute_resource_id = params[:compute_resource_id].present? ? params[:compute_resource_id] : nil
|
|
104 | 104 |
if compute_resource_id |
105 | 105 |
container_uuid = params[:id] |
106 | 106 |
@container ||= Container.authorized("#{action_permission}_#{controller_name}".to_sym).find_by_uuid(container_uuid) |
Also available in: Unified diff
Fixes #21893 - fix listing containers for specific CR