diff --git a/l2-frontend/src/construct/ConstructParaclinic.vue b/l2-frontend/src/construct/ConstructParaclinic.vue index 4ad4711465..5b6fc2646e 100644 --- a/l2-frontend/src/construct/ConstructParaclinic.vue +++ b/l2-frontend/src/construct/ConstructParaclinic.vue @@ -147,6 +147,14 @@ export default { } return false; }, + can_edit_case() { + for (const g of this.$store.getters.user_data.groups || []) { + if (g === 'Редактирование случая') { + return true; + } + } + return false; + }, }, watch: { department: { @@ -278,7 +286,7 @@ export default { } } - if (this.modules.l2_case) { + if (this.modules.l2_case && this.can_edit_case) { d.push({ value: -14, label: 'Случаи' }); } }