diff --git a/aleksis/core/frontend/components/app/whoAmI.graphql b/aleksis/core/frontend/components/app/whoAmI.graphql index 1af27f4aeb41dcbe1e2722895de0019806762e45..159e4c088e1ba1327130711f9fac9e8d1645b607 100644 --- a/aleksis/core/frontend/components/app/whoAmI.graphql +++ b/aleksis/core/frontend/components/app/whoAmI.graphql @@ -6,7 +6,6 @@ query whoAmI($permissions: [String]!) { isAnonymous isImpersonate person { - id photo { url } diff --git a/aleksis/core/frontend/components/calendar/custom_event/CustomEventDialog.vue b/aleksis/core/frontend/components/calendar/custom_event/CustomEventDialog.vue index cb0d1dee6ee1518e14b20cec4de9a2cc7941f5b5..d92e797525c7a937336ddda7b498993c5e23dfef 100644 --- a/aleksis/core/frontend/components/calendar/custom_event/CustomEventDialog.vue +++ b/aleksis/core/frontend/components/calendar/custom_event/CustomEventDialog.vue @@ -98,7 +98,6 @@ import { updateCustomEvent, gqlPersons, gqlGroups, - gqlCurrentPerson, } from "./customEvent.graphql"; import permissionsMixin from "../../../mixins/permissions.js"; @@ -145,9 +144,6 @@ export default { return !this.checkPermission("core.create_custom_events"); }, }, - whoAmI: { - query: gqlCurrentPerson, - }, }, mixins: [permissionsMixin], methods: { @@ -160,7 +156,7 @@ export default { datetimeEnd: item.datetimeEnd, persons: this.checkPermission("core.create_custom_events") ? item.persons - : this.whoAmI.person.id, + : [], groups: this.checkPermission("core.create_custom_events") ? item.groups : [], diff --git a/aleksis/core/frontend/components/calendar/custom_event/customEvent.graphql b/aleksis/core/frontend/components/calendar/custom_event/customEvent.graphql index 893f5728f4808920a710d970c979cc51a94ad3fc..2bd3705fd773e376a577b8e0e215a59d3a9bf294 100644 --- a/aleksis/core/frontend/components/calendar/custom_event/customEvent.graphql +++ b/aleksis/core/frontend/components/calendar/custom_event/customEvent.graphql @@ -63,12 +63,3 @@ query gqlGroups { shortName } } - -query gqlCurrentPerson { - whoAmI { - id - person { - id - } - } -} diff --git a/aleksis/core/frontend/components/notifications/myNotifications.graphql b/aleksis/core/frontend/components/notifications/myNotifications.graphql index 873987d1ab1585627878ba4423e70f38db846c1d..5c430731b0e3993e2c4b0872c4a44b5d8639a0bf 100644 --- a/aleksis/core/frontend/components/notifications/myNotifications.graphql +++ b/aleksis/core/frontend/components/notifications/myNotifications.graphql @@ -2,7 +2,6 @@ myNotifications: whoAmI { id person { - id notifications { id title