Roughing in roles selection
This commit is contained in:
parent
abb57c9ee0
commit
c3e0da9cb4
4 changed files with 23 additions and 1 deletions
|
@ -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');
|
||||
|
|
Reference in a new issue