Roughing in user admin
This commit is contained in:
parent
3b3f8cc691
commit
be8a842c67
5 changed files with 23 additions and 1 deletions
|
@ -7,5 +7,9 @@ export default DS.Model.extend({
|
|||
role : DS.attr('string'),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date'),
|
||||
deletedAt: DS.attr('date')
|
||||
deletedAt: DS.attr('date'),
|
||||
|
||||
isAdmin: function() {
|
||||
return this.get('role') === 'A';
|
||||
}.property('role'),
|
||||
});
|
||||
|
|
Reference in a new issue