diff --git a/src/components/FirstStart.vue b/src/components/FirstStart.vue index 4f2d9d10..693917d7 100644 --- a/src/components/FirstStart.vue +++ b/src/components/FirstStart.vue @@ -51,7 +51,6 @@ import NcContent from '@nextcloud/vue/dist/Components/NcContent'; import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent'; import NcButton from '@nextcloud/vue/dist/Components/NcButton'; -import { getCurrentUser } from '@nextcloud/auth'; import axios from '@nextcloud/axios'; import banner from '../assets/banner.svg'; @@ -85,7 +84,7 @@ export default defineComponent({ computed: { isAdmin(): boolean { - return Boolean(getCurrentUser()?.isAdmin); + return utils.isAdmin; }, }, diff --git a/src/components/SelectionManager.vue b/src/components/SelectionManager.vue index c0c205db..d7ac9ddf 100644 --- a/src/components/SelectionManager.vue +++ b/src/components/SelectionManager.vue @@ -50,7 +50,6 @@ import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'; import { translate as t, translatePlural as n } from '@nextcloud/l10n'; import { subscribe, unsubscribe } from '@nextcloud/event-bus'; -import { getCurrentUser } from '@nextcloud/auth'; import * as dav from '../services/dav'; import * as utils from '../services/utils'; @@ -899,7 +898,7 @@ export default defineComponent({ } // Check photo ownership - if (this.$route.params.user !== getCurrentUser()?.uid) { + if (this.$route.params.user !== utils.uid) { showError(this.t('memories', 'Only user "{user}" can update this person', { user })); return; } diff --git a/src/components/Settings.vue b/src/components/Settings.vue index e634771b..da0df84b 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -145,8 +145,6 @@ input[type='text'] {