diff --git a/app/controllers/api/v1/hosts_controller.rb b/app/controllers/api/v1/hosts_controller.rb index d02d6d1..7e77d06 100644 --- a/app/controllers/api/v1/hosts_controller.rb +++ b/app/controllers/api/v1/hosts_controller.rb @@ -108,6 +108,11 @@ Return value may either be one of the following: @host.request_url = request.host_with_port if @host.respond_to?(:request_url) end + # we need to limit resources for a current user + def resource_class + super.my_hosts + end + end end end