Files
threshold-ui/ui/admin/app/routes/scopes/scope/edit.js
T

18 lines
415 B
JavaScript
Raw Normal View History

import Route from '@ember/routing/route';
2020-10-29 16:58:15 -04:00
import { inject as service } from '@ember/service';
export default class ScopesScopeEditRoute extends Route {
2020-10-29 16:58:15 -04:00
// =services
@service session;
@service router;
2020-10-29 16:58:15 -04:00
// =methods
/**
* If arriving here unauthenticated, redirect to index for further processing.
*/
beforeModel() {
if (!this.session.isAuthenticated) this.router.transitionTo('index');
2020-10-29 16:58:15 -04:00
}
}