pundit: add missing authorize calls.

This commit is contained in:
evazion
2020-03-24 00:38:07 -05:00
parent 4a5bec71f6
commit 0ad5619484
5 changed files with 11 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class IpAddressesController < ApplicationController
end
def show
@ip_address = IpAddress.new(ip_addr: params[:id])
@ip_address = authorize IpAddress.new(ip_addr: params[:id])
@ip_info = @ip_address.lookup.info
respond_with(@ip_info)
end