there is a typo in your code.
Posts.allow({ update: ownsDocument, remote: ownsDocument});
should be changed as
Posts.allow({ update: ownsDocument, remove: ownsDocument});
there is a typo in your code.
Posts.allow({ update: ownsDocument, remote: ownsDocument});
should be changed as
Posts.allow({ update: ownsDocument, remove: ownsDocument});