mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-archive.git
synced 2025-01-31 02:30:16 +00:00
18 lines
423 B
JavaScript
18 lines
423 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { inject: { service } } = Ember;
|
|
|
|
export default Ember.Route.extend({
|
|
sessionAccount: service('session-account'),
|
|
beforeModel() {
|
|
'use strict';
|
|
const cid = this.get('sessionAccount.account.memberof');
|
|
this.store.query('page', { filter: { cid: cid } }).then(function(d) {
|
|
return d;
|
|
});
|
|
},
|
|
model: function() {
|
|
return this.store.findAll('page');
|
|
}
|
|
});
|