Dropping ember-can

This commit is contained in:
Matthew Dillon 2015-06-05 09:36:51 -08:00
parent 3501dc1986
commit 53be80d617
13 changed files with 57 additions and 75 deletions

View file

@ -0,0 +1,8 @@
import Ember from 'ember';
export default Ember.Component.extend({
canAdd: function() {
let role = this.get('session.currentUser.role');
return (role === 'W') || (role === 'A');
}.property('session.currentUser.role')
});

View file

@ -0,0 +1,5 @@
{{#if canAdd}}
{{#link-to link class="button-gray smaller"}}
{{label}}
{{/link-to}}
{{/if}}