fix(front): only show participants & announcements menu items to organizers

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-12-05 08:14:43 +01:00
parent 89d1ee42f4
commit c4d2ec69ad
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -107,11 +107,7 @@
{{ t("Actions") }}
</o-button>
</template>
<o-dropdown-item
aria-role="listitem"
has-link
v-if="canManageEvent || !event?.draft"
>
<o-dropdown-item aria-role="listitem" has-link v-if="canManageEvent">
<router-link
class="flex gap-1"
:to="{
@ -123,11 +119,7 @@
{{ t("Participations") }}
</router-link>
</o-dropdown-item>
<o-dropdown-item
aria-role="listitem"
has-link
v-if="canManageEvent || !event?.draft"
>
<o-dropdown-item aria-role="listitem" has-link v-if="canManageEvent">
<router-link
class="flex gap-1"
:to="{