Commit 77f85604 authored by Tomasz Gubała's avatar Tomasz Gubała

checking user prom access with scratch folder instead of home

parent 3f491f98
......@@ -54,7 +54,7 @@ class User < ActiveRecord::Base
end
begin
GFTP::Exists.new.exists "gsiftp://#{Plgdata::Application.config.prometheus_gridftp_host}/net/people/#{user.login}/", user.proxy do |test|
GFTP::Exists.new.exists "gsiftp://#{Plgdata::Application.config.prometheus_gridftp_host}/net/scratch/people/#{user.login}/", user.proxy do |test|
Rails.logger.info "PROM DIR CHECK: #{test} (the test took: #{Time.now - t})"
user.prometheus_enabled = test
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment