mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Added redirect to account home for complimentary member
no issue - Complimentary members should be redirected to account home when attempted to open the account plan page via portal link
This commit is contained in:
parent
da7aee7003
commit
ac162cf1ea
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ import * as Fixtures from './utils/fixtures';
|
|||
import ActionHandler from './actions';
|
||||
import './App.css';
|
||||
import NotificationParser from './utils/notifications';
|
||||
import {createPopupNotification} from './utils/helpers';
|
||||
import {createPopupNotification, isComplimentaryMember} from './utils/helpers';
|
||||
const React = require('react');
|
||||
|
||||
const DEV_MODE_DATA = {
|
||||
|
@ -346,6 +346,10 @@ export default class App extends React.Component {
|
|||
page = member ? 'accountHome' : 'signup';
|
||||
}
|
||||
|
||||
if (page === 'accountPlan' && isComplimentaryMember({member})) {
|
||||
page = 'accountHome';
|
||||
}
|
||||
|
||||
return getActivePage({page});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue