diff --git a/src/Attendee.vue b/src/Attendee.vue index e71b4b3..a218f99 100644 --- a/src/Attendee.vue +++ b/src/Attendee.vue @@ -46,7 +46,7 @@ export default { methods: { isAuthorized(ownerID) { - return this.$store.state.loggedInUser.isAdmin || (this.$store.state.loggedInUser._id && this.$store.state.loggedInUser._id == ownerID); + return !ownerID || this.$store.state.loggedInUser.isAdmin || (this.$store.state.loggedInUser._id && this.$store.state.loggedInUser._id == ownerID); }, editAttendee() { diff --git a/src/Toolbar.vue b/src/Toolbar.vue index 4e546da..68c5f23 100644 --- a/src/Toolbar.vue +++ b/src/Toolbar.vue @@ -8,10 +8,10 @@