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

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

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)