-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: don't jump to main page or step 3 in wizard #5225
fix: don't jump to main page or step 3 in wizard #5225
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/ar1qgltf9 |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this change necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when initially creating an event the owner email is null
Codecov Report
@@ Coverage Diff @@
## development #5225 +/- ##
===============================================
- Coverage 22.75% 22.69% -0.06%
===============================================
Files 490 490
Lines 5199 5199
Branches 36 36
===============================================
- Hits 1183 1180 -3
- Misses 4011 4014 +3
Partials 5 5
Continue to review full report at Codecov.
|
Fixes #5187
Checklist
development
branch.