10172: Add skip_before_filter :find_object_by_uuid for current. Typo fixes.
[arvados.git] / services / api / app / models / link.rb
index d9b8f6f09b191230b6635fd8cd0b1cadf9ccf5ab..24872b21ec7163852cf86d0c0ceb3d3b41f13608 100644 (file)
@@ -66,7 +66,7 @@ class Link < ArvadosModel
       # permissions for head_uuid and tail_uuid, and invalidate the
       # cache for only those users. (This would require a browseable
       # cache.)
-      User.invalidate_permissions_cache
+      User.invalidate_permissions_cache db_current_time.to_i
     end
   end