Project

General

Profile

hosts_escalation.patch

Marek Hulán, 07/30/2013 10:44 AM

View differences:

app/controllers/api/v1/hosts_controller.rb
108 108
        @host.request_url = request.host_with_port if @host.respond_to?(:request_url)
109 109
      end
110 110

  
111
      # we need to limit resources for a current user
112
      def resource_class
113
        super.my_hosts
114
      end
115

  
111 116
    end
112 117
  end
113 118
end