+
{{ __('My calendar') }}
@@ -157,11 +166,19 @@ const props = defineProps({
})
onMounted(() => {
- if (user.data?.name !== props.profile.data?.name) {
+ if (user.data?.name !== props.profile.data?.name && !hasHigherAccess()) {
window.location.href = `/user/${props.profile.data?.username}`
}
})
+const hasHigherAccess = () => {
+ return user.data?.is_evaluator || user.data?.is_moderator
+}
+
+const isSessionUser = () => {
+ return user.data?.email === props.profile.data?.email
+}
+
const showSlotsTemplate = ref(0)
const from = ref(null)
const to = ref(null)