Ensured redirect for /billing route when not signed in

no issue

Fixes a bug where the billing iframe would show a blank page when called directly and user is not logged in. This commit ensures to that we have a valid authenticated session and redirects to the signin page if not.
This commit is contained in:
Kevin Ansfield 2021-03-02 08:50:56 +00:00
parent 9660f076db
commit 0ed59d730d

View File

@ -1,7 +1,7 @@
import Route from '@ember/routing/route';
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
import {inject as service} from '@ember/service';
export default Route.extend({
export default AuthenticatedRoute.extend({
billing: service(),
queryParams: {