I was testing my allow/deny code for a Collection and I was trying to do a Collection.update from the client. Whenever I pass a random word as the id or a bad id (e.g. one from the wrong Collection) the Collection.update returns with no error and the allow/deny blocks never get called. The update of course fails, but there’s never an error thrown.
Without error returning, I can never display a specific error message to the user. Can someone confirm this is intended behavior - like a Meteor core level check if you’re passing in an id that doesn’t match any object in the Collection it gets rejected before any allow/deny calls? I am noticing result returns as 0 updated so I guess I can use that to return a generic error. But it seems like doing a check in my allow/deny would let me return a specific error to the user (e.g. Couldn’t find object matching that ID).
I also tested this in the Local Market app and the same thing happens.