Created
February 4, 2015 01:18
-
-
Save cloke/789fbe6a8a7b4eafc7db to your computer and use it in GitHub Desktop.
This file contains 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
Handlebars.registerHelper 'has-permission', (conditional, options) -> | |
if @get('currentPerson.content.rights').contains conditional | |
options.fn @ | |
else | |
options.inverse @ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment