censis-archive/obrand/obrand-admin/app/routes/venue.js

13 lines
319 B
JavaScript
Raw Normal View History

2016-06-06 10:45:51 +00:00
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');
}
}
});