       .done () ->
         url = linksHelper.getPath('contents', {model: page})
         router.navigate(url, {trigger: true})
+
+    isEditable: () =>
+      if _.indexOf(@model.get('permissions'), 'edit') >= 0
+        return true

  BaseView = require('cs!helpers/backbone/views/base')
  template = require('hbs!./tools-template')
  require('less!./tools')

  return class ToolsView extends BaseView
    template: template

      authenticated: session.get('id')
      encodedTitle: encodeURI(@model.get('title'))
      derivable: @model.canEdit()
      isEditable: @isEditable
    }

    events:
