Skip to content

Commit

Permalink
fix: don't jump to main page or step 3 in wizard (#5225)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored Oct 2, 2020
1 parent 4c209cd commit c5b9a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class extends Controller.extend(EventWizardMixin) {
@action
move() {
this.saveEventDataAndRedirectTo(
'events.view.edit.attendee',
'events.view.edit.other-details',
['tickets', 'socialLinks', 'copyright', 'tax', 'stripeAuthorization']
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/events/view/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class EditRoute extends Route.extend(AuthenticatedRouteMixin, Eve

const event = this.modelFor('events.view');
const { currentUser } = this.authManager;
if (!(currentUser.isAnAdmin || currentUser.email === event.owner.get('email') || event.organizers.includes(currentUser)
if (!(currentUser.isAnAdmin || (currentUser.email === event.owner.get('email') || !event.owner.get('email')) || event.organizers.includes(currentUser)
|| event.coorganizers.includes(currentUser) || event.trackOrganizers.includes(currentUser)
|| event.registrars.includes(currentUser) || event.moderators.includes(currentUser))) {
this.transitionTo('index');
Expand Down

1 comment on commit c5b9a0f

@vercel
Copy link

@vercel vercel bot commented on c5b9a0f Oct 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.