censis-archive/obrand/obrand-admin/app/routes/venue.js
2016-06-06 11:45:51 +01:00

13 lines
319 B
JavaScript

import Ember from 'ember';
const { inject: { service } } = Ember;
export default Ember.Route.extend({
sessionAccount: service('session-account'),
beforeModel() {
const cid = this.get('sessionAccount.account.memberof');
if (typeof cid === 'undefined') {
this.transitionTo('newcompany');
}
}
});