17040: Cache results of User.group_permissions
[arvados.git] / services / api / app / models / link.rb
index 0d7334e44e85440d37a530e6316d338f125b92aa..eb6ff4c6b80f3a9ad8ecd864dc200fc9122fa11b 100644 (file)
@@ -136,6 +136,7 @@ class Link < ArvadosModel
   def call_update_permissions
     if self.link_class == 'permission'
       update_permissions tail_uuid, head_uuid, PERM_LEVEL[name], self.uuid
+      current_user.forget_cached_group_perms
     end
   end