Skip to content

Commit

Permalink
upgrade gem
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed May 9, 2024
1 parent 9e1ce87 commit 9298748
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -481,4 +481,4 @@ DEPENDENCIES
webmock (~> 3.1)

BUNDLED WITH
2.5.6
2.5.6
3 changes: 0 additions & 3 deletions app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9298748

Please sign in to comment.