Skip to content

Commit

Permalink
admin: Check for event view permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
katajakasa committed Apr 2, 2024
1 parent 1d93c98 commit 9524008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/components/MainNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:items="events"
v-model="event"
>
<template #append>
<template #append v-if="authService.canView(PermissionTarget.EVENT)">
<v-btn
icon="fas fa-calendar-days"
variant="plain"
Expand All @@ -37,7 +37,7 @@ import { useRoute, useRouter } from "vue-router";
import logoImage from "@/assets/icon.png";
import NavigationList, { type NavigationLinks } from "@/components/NavigationList.vue";
import { useAuth } from "@/services/auth";
import { PermissionTarget, useAuth } from "@/services/auth";
import { useEvents } from "@/services/events";
defineProps<{ primary: NavigationLinks; secondary: NavigationLinks }>();
Expand Down

0 comments on commit 9524008

Please sign in to comment.