Skip to content

Instantly share code, notes, and snippets.

@fakenickels
Created July 13, 2015 14:09
Show Gist options
  • Save fakenickels/c02e5df16f03d93a3781 to your computer and use it in GitHub Desktop.
Save fakenickels/c02e5df16f03d93a3781 to your computer and use it in GitHub Desktop.
ongoworks:security
Security.defineMethod("ifHasUserId", {
fetch: [],
transform: null,
deny: function (type, args, userId, document) {
return userId !== arg;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment