Created
July 13, 2015 14:09
-
-
Save fakenickels/c02e5df16f03d93a3781 to your computer and use it in GitHub Desktop.
ongoworks:security
This file contains hidden or 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
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