From 3fbbacabca567fe098ad59ac1ada91d67d6e945f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Wed, 3 May 2023 06:11:52 +0200 Subject: [PATCH] check has permission assign --- src/components/overview/slots/JobSlot.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/overview/slots/JobSlot.vue b/src/components/overview/slots/JobSlot.vue index 69f1408..8063ec0 100644 --- a/src/components/overview/slots/JobSlot.vue +++ b/src/components/overview/slots/JobSlot.vue @@ -54,7 +54,7 @@
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,