Roughing in user admin

This commit is contained in:
Matthew Dillon 2015-09-09 14:23:25 -07:00
parent 3b3f8cc691
commit be8a842c67
5 changed files with 23 additions and 1 deletions

View file

@ -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'),
});