Skip to content

Instantly share code, notes, and snippets.

@goatandsheep
Created November 30, 2018 17:12
Show Gist options
  • Save goatandsheep/198f10fbb2b6b8fcb5f74bb0efa7e0d4 to your computer and use it in GitHub Desktop.
Save goatandsheep/198f10fbb2b6b8fcb5f74bb0efa7e0d4 to your computer and use it in GitHub Desktop.
#if(${ctx.identity.username} != ${context.result.parentId})
$utils.unauthorized()
#else
$util.toJson($ctx.result)
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment