ROLE_COUNTER
This commit is contained in:
@@ -6,7 +6,12 @@
|
||||
<button class="btn btn-info mr-2" @click="handleSyncList" :disabled="isFetching">
|
||||
<font-awesome-icon icon="sync" :spin="isFetching"></font-awesome-icon> <span>Refresh list</span>
|
||||
</button>
|
||||
<router-link :to="{ name: 'TransactionCreate' }" custom v-slot="{ navigate }" v-if="hasAnyAuthority('ROLE_ADMIN')">
|
||||
<router-link
|
||||
:to="{ name: 'TransactionCreate' }"
|
||||
custom
|
||||
v-slot="{ navigate }"
|
||||
v-if="hasAnyAuthority(['ROLE_ADMIN', 'ROLE_COUNTER'])"
|
||||
>
|
||||
<button
|
||||
@click="navigate"
|
||||
id="jh-create-entity"
|
||||
@@ -94,7 +99,7 @@
|
||||
:to="{ name: 'TransactionEdit', params: { transactionId: transaction.id } }"
|
||||
custom
|
||||
v-slot="{ navigate }"
|
||||
v-if="hasAnyAuthority('ROLE_ADMIN')"
|
||||
v-if="hasAnyAuthority(['ROLE_ADMIN', 'ROLE_COUNTER'])"
|
||||
>
|
||||
<button @click="navigate" class="btn btn-primary btn-sm edit" data-cy="entityEditButton">
|
||||
<font-awesome-icon icon="pencil-alt"></font-awesome-icon>
|
||||
|
||||
Reference in New Issue
Block a user