Roughing in roles selection

This commit is contained in:
Matthew Dillon 2015-10-12 12:05:45 -07:00
parent abb57c9ee0
commit c3e0da9cb4
4 changed files with 23 additions and 1 deletions

View file

@ -1,6 +1,12 @@
import Ember from 'ember';
export default Ember.Component.extend({
isAdmin: Ember.computed('currentUser', function() {
return this.get('currentUser.role') == 'A';
}),
roles: Ember.String.w('A R W'),
actions: {
save: function() {
this.sendAction('save');