From 9fb9b8710ca7f95e1726ed4c64052fbdeff434df Mon Sep 17 00:00:00 2001 From: Martin Povolny Date: Fri, 7 Apr 2017 15:56:34 +0200 Subject: [PATCH] Merge pull request #951 from gberginc/fix/find_checked_ids_with_rbac Fix the missed `find_checked_ids_with_rbac` (cherry picked from commit 6cf619114738f873a6095297d8925c942bf73d0a) --- app/controllers/cloud_volume_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/cloud_volume_controller.rb b/app/controllers/cloud_volume_controller.rb index fa4e30614c2..754daab9d5c 100644 --- a/app/controllers/cloud_volume_controller.rb +++ b/app/controllers/cloud_volume_controller.rb @@ -426,11 +426,11 @@ def update_finished def delete_volumes assert_privileges("cloud_volume_delete") volumes = if @lastaction == "show_list" || (@lastaction == "show" && @layout != "cloud_volume") - find_checked_items_with_rbac(CloudVolume) + find_checked_ids_with_rbac(CloudVolume) elsif params[:id].present? [params[:id]] else - find_checked_items_with_rbac(CloudVolume) + find_checked_ids_with_rbac(CloudVolume) end if volumes.empty?