From 92987483eb421650604440515bcb9c1df53d8650 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Thu, 9 May 2024 17:31:19 +0200 Subject: [PATCH] upgrade gem --- Gemfile | 2 +- Gemfile.lock | 6 +++--- app/controllers/reports_controller.rb | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index 64f1ce4..18b55cb 100644 --- a/Gemfile +++ b/Gemfile @@ -20,7 +20,7 @@ gem "bcrypt", "~> 3.1.13" gem "simple_command" gem "kaminari", "~> 1.2" gem "api-pagination" -gem "cancancan", "~> 3.0" +gem "cancancan", "~> 3.5" gem "facets", require: false gem "base32-url", "~> 0.3" gem "rack-cors", "~> 1.0", :require => "rack/cors" diff --git a/Gemfile.lock b/Gemfile.lock index cd1f453..90b4fa8 100755 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -114,7 +114,7 @@ GEM msgpack (~> 1.2) builder (3.2.4) byebug (11.1.3) - cancancan (3.4.0) + cancancan (3.5.0) capybara (3.36.0) addressable matrix @@ -433,7 +433,7 @@ DEPENDENCIES binding_of_caller bootsnap (~> 1.4) byebug - cancancan (~> 3.0) + cancancan (~> 3.5) capybara codeclimate-test-reporter (~> 1.0.0) dalli (~> 3.2, >= 3.2.8) @@ -481,4 +481,4 @@ DEPENDENCIES webmock (~> 3.1) BUNDLED WITH - 2.5.6 \ No newline at end of file + 2.5.6 \ No newline at end of file diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 9a85fe2..6250787 100755 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -152,9 +152,6 @@ def set_report end def set_user_hash - if current_user&.uid.blank? - raise CanCan::AccessDenied.new("Not authorized") - end @user_hash = { user_id: current_user.uid } end