Skip to content

Instantly share code, notes, and snippets.

@cloke
Created February 4, 2015 01:18

Revisions

  1. cloke created this gist Feb 4, 2015.
    5 changes: 5 additions & 0 deletions gistfile1.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Handlebars.registerHelper 'has-permission', (conditional, options) ->
    if @get('currentPerson.content.rights').contains conditional
    options.fn @
    else
    options.inverse @