ROLE_COUNTER

This commit is contained in:
2024-11-30 11:02:45 +01:00
parent 5d6a0ae3e1
commit afc46e3c41
6 changed files with 21 additions and 13 deletions
@@ -45,7 +45,7 @@
<font-awesome-icon icon="plus"></font-awesome-icon>&nbsp;<span>Dołącz do wydarzenia</span>
</button>
</router-link>
<button class="btn btn-primary float-right" v-if="hasAnyAuthority('ROLE_ADMIN')" @click="settle()">
<button class="btn btn-primary float-right" v-if="hasAnyAuthority(['ROLE_ADMIN', 'ROLE_COUNTER'])" @click="settle()">
<font-awesome-icon icon="sync"></font-awesome-icon> <span>Rozlicz wydarzenie</span>
</button>
<div class="table-responsive" v-if="event.registrations && event.registrations.length > 0">
@@ -77,7 +77,8 @@
class="btn btn-sm"
data-cy="entityDeleteButton"
v-if="
((registration.id && registration.user?.id == currentUserId && isCurrentEvent) || hasAnyAuthority('ROLE_ADMIN')) &&
((registration.id && registration.user?.id == currentUserId && isCurrentEvent) ||
hasAnyAuthority(['ROLE_ADMIN', 'ROLE_COUNTER'])) &&
registration.active !== false
"
v-b-modal.removeEntity