11960: Fix permission checking for events on trashed collections.
[arvados.git] / services / ws / session_v0.go
index bc7e6ecb9e391e5afef37edabfeffd791c4cd710..daa5208d0fef564e4b02759e2f8665f6447b8fa9 100644 (file)
@@ -20,7 +20,16 @@ var (
        errQueueFull   = errors.New("client queue full")
        errFrameTooBig = errors.New("frame too big")
 
-       sendObjectAttributes = []string{"state", "name", "owner_uuid", "portable_data_hash"}
+       // Send clients only these keys from the
+       // log.properties.old_attributes and
+       // log.properties.new_attributes hashes.
+       sendObjectAttributes = []string{
+               "is_trashed",
+               "name",
+               "owner_uuid",
+               "portable_data_hash",
+               "state",
+       }
 
        v0subscribeOK   = []byte(`{"status":200}`)
        v0subscribeFail = []byte(`{"status":400}`)