Remove dump_docker method for admins

This commit is contained in:
Sebastian Serth
2021-10-24 13:01:00 +02:00
parent af93603ba3
commit 288c7693f7
2 changed files with 0 additions and 11 deletions

View File

@ -15,13 +15,5 @@ module Admin
format.json { render(json: dashboard_data) } format.json { render(json: dashboard_data) }
end end
end end
def dump_docker
authorize(self)
respond_to do |format|
format.html { render(json: DockerContainerPool.dump_info) }
format.json { render(json: DockerContainerPool.dump_info) }
end
end
end end
end end

View File

@ -2,8 +2,5 @@
module Admin module Admin
class DashboardPolicy < AdminOnlyPolicy class DashboardPolicy < AdminOnlyPolicy
def dump_docker?
admin?
end
end end
end end