From 56054be3a6c2a99fcab24839408886ae69cc65c2 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Tue, 17 Jan 2017 18:46:08 +0100 Subject: [PATCH] fix permissions of GUI elements --- src/Attendee.vue | 2 +- src/Toolbar.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@  

ibt2

- + people_outline - + person_pin