В аналитике скрыт выбор при отсутствии разрешения

This commit is contained in:
Александр Сироткин 2022-02-08 19:55:34 +05:00
parent a275bd20c7
commit 6b1523f0ef

View File

@ -171,9 +171,9 @@ export const WellCompositeSections = memo(({ idWell, statsWells, selectedSection
},
]
const rowSelection = {
const rowSelection = hasPermission('WellOperation.edit') && {
selectedRowKeys: selectedWellsKeys,
onChange: (keys, items) => hasPermission('WellOperation.edit') && invokeWebApiWrapperAsync(
onChange: (keys, items) => invokeWebApiWrapperAsync(
async () => {
const selectedSections = items.map((row) => ({idWell, idWellSrc: row.id, idWellSectionType: row.sectionId}))
await WellCompositeService.save(idWell, selectedSections)