check has permission assign
This commit is contained in:
parent
6f6fca84ed
commit
3fbbacabca
|
@ -54,7 +54,7 @@
|
|||
</q-select>
|
||||
<div class="row col-12 justify-end">
|
||||
<q-btn
|
||||
v-if="!modelValue.locked && !isEnrolled && !isFull"
|
||||
v-if="!modelValue.locked && !isEnrolled && !isFull && canAssign"
|
||||
flat
|
||||
color="primary"
|
||||
label="Eintragen"
|
||||
|
@ -205,6 +205,8 @@ export default defineComponent({
|
|||
// Current user can assign other users
|
||||
const canAssignOther = computed(() => hasPermission(PERMISSIONS.ASSIGN_OTHER));
|
||||
|
||||
const canAssign = computed(() => hasPermission(PERMISSIONS.ASSIGN));
|
||||
|
||||
// options shown in the select
|
||||
const options = ref([] as FG.Service[]);
|
||||
|
||||
|
@ -257,6 +259,7 @@ export default defineComponent({
|
|||
unassign: (s?: FG.Service) => assign(Object.assign({}, s || service.value, { value: -1 })),
|
||||
backup: (is_backup: boolean) => assign(Object.assign({}, service.value, { is_backup })),
|
||||
canAssignOther,
|
||||
canAssign,
|
||||
canInvite,
|
||||
filterUsers,
|
||||
isBackup,
|
||||
|
|
Loading…
Reference in New Issue