Skip to content

Commit

Permalink
Роль для редактирвоания случая
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Oct 1, 2023
1 parent 4745778 commit 5014c6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion l2-frontend/src/construct/ConstructParaclinic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: 'Случаи' });
}
}
Expand Down

0 comments on commit 5014c6a

Please sign in to comment.