16524: Pin rsa package to < 4.1
[arvados.git] / services / api / lib / refresh_permission_view.rb
index 25be3c08d4d40d8f7dbc7307e76bc7d2423997a6..5d6081f262b25756dd7e3fcdeec42ae762c4687f 100644 (file)
@@ -12,8 +12,8 @@ def do_refresh_permission_view
 end
 
 def refresh_permission_view(async=false)
-  if async and Rails.configuration.async_permissions_update_interval > 0
-    exp = Rails.configuration.async_permissions_update_interval.seconds
+  if async and Rails.configuration.API.AsyncPermissionsUpdateInterval > 0
+    exp = Rails.configuration.API.AsyncPermissionsUpdateInterval.seconds
     need = false
     Rails.cache.fetch('AsyncRefreshPermissionView', expires_in: exp) do
       need = true