relocate permissions code, use resulting :read permissions in #index. refs #1415
[arvados.git] / app / models / link.rb
index 55aecdc7cc682c7988f2705b0ea6ceff3fc89f80..5ca5f36004273d8411fcdd5ea44ce3a0d32f40b3 100644 (file)
@@ -70,7 +70,7 @@ class Link < OrvosModel
       # permissions for head_uuid and tail_uuid, and invalidate the
       # cache for only those users. (This would require a browseable
       # cache.)
-      invalidate_permissions_cache
+      User.invalidate_permissions_cache
     end
   end
 end