forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collection.update() and .remove() may only use IDs as selectors when …
…sending RPCs. ie, they can use arbitrary selectors on the server and in client stubs, but not in other client contexts. This is to prevent clients from executing arbitrary selectors against the DB. Because of this, the update and remove allow/deny callbacks can only ever get one doc, so switch them from getting an array to just getting the doc (like insert).
- Loading branch information
Showing
6 changed files
with
490 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.