Bug #2863 » hosts_escalation.patch
app/controllers/api/v1/hosts_controller.rb | ||
---|---|---|
@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
|