Allow editing of booked accommodation by group managers only
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
/>
|
||||
<accommodation-select :participant="participant"
|
||||
:contingents="availableContingents"
|
||||
:mutable="mutableFields.accommodation.mutable"
|
||||
:mutable="mutableFields.accommodation.mutable && isGroupManager"
|
||||
v-on:selected="onAccommodationSelected($event, index)"
|
||||
/>
|
||||
<service-select v-for="subType in servicesSubTypes"
|
||||
@@ -144,7 +144,7 @@
|
||||
import TransportationSelect from './components/TransportationSelect';
|
||||
|
||||
import authenticatedClient from '../api';
|
||||
import {mapMutations, mapState} from 'vuex';
|
||||
import {mapGetters, mapMutations, mapState} from 'vuex';
|
||||
|
||||
Vue.use(VueScrollTo)
|
||||
|
||||
@@ -419,6 +419,7 @@
|
||||
},
|
||||
computed: {
|
||||
...mapState(['loading']),
|
||||
...mapGetters(['isGroupManager']),
|
||||
availableContingents () {
|
||||
let filteredContingents = {};
|
||||
for (let id of Object.keys(this.contingents)) {
|
||||
|
||||
Reference in New Issue
Block a user