diff --git a/src/features/connection/ConnectionList/index.tsx b/src/features/connection/ConnectionList/index.tsx index 3ad1e63..298817a 100644 --- a/src/features/connection/ConnectionList/index.tsx +++ b/src/features/connection/ConnectionList/index.tsx @@ -13,6 +13,7 @@ export const ConnectionList = memo(({ group, onUpdateRowClick, onDeleteRowClick queryKey={[ConnectionQueryKey.GET_CONNECTIONS, group.data.id]} queryFunction={(params) => connectionService.getConnections({ ...params, group_id: group.data.id })} columns={CONNECTION_LIST_COLUMNS} + isHiddenRowActions={!hasAccessByUserRole(UserRole.Developer, group.role)} isRenderUpdateRowAction={() => hasAccessByUserRole(UserRole.Developer, group.role)} isRenderDeleteRowAction={() => hasAccessByUserRole(UserRole.Maintainer, group.role)} onUpdateRowClick={onUpdateRowClick} diff --git a/src/features/group/GroupUserList/index.tsx b/src/features/group/GroupUserList/index.tsx index cf96883..1280012 100644 --- a/src/features/group/GroupUserList/index.tsx +++ b/src/features/group/GroupUserList/index.tsx @@ -21,6 +21,7 @@ export const GroupUserList = memo(({ group, onUpdateRowClick, onDeleteRowClick } queryKey={[GroupQueryKey.GET_GROUP_USERS, group.data.id]} queryFunction={handleGetGroupUsers} columns={GROUP_USER_LIST_COLUMNS} + isHiddenRowActions={!hasAccessByUserRole(UserRole.Owner, group.role)} isRenderUpdateRowAction={isRenderRowAction} isRenderDeleteRowAction={isRenderRowAction} onUpdateRowClick={onUpdateRowClick} diff --git a/src/features/queue/QueueList/index.tsx b/src/features/queue/QueueList/index.tsx index c7e75a7..4170ee1 100644 --- a/src/features/queue/QueueList/index.tsx +++ b/src/features/queue/QueueList/index.tsx @@ -13,6 +13,7 @@ export const QueueList = memo(({ group, onUpdateRowClick, onDeleteRowClick }: Qu queryKey={[QueueQueryKey.GET_QUEUES, group.data.id]} queryFunction={(params) => queueService.getQueues({ ...params, group_id: group.data.id })} columns={QUEUE_LIST_COLUMNS} + isHiddenRowActions={!hasAccessByUserRole(UserRole.Maintainer, group.role)} isRenderUpdateRowAction={() => hasAccessByUserRole(UserRole.Maintainer, group.role)} isRenderDeleteRowAction={() => hasAccessByUserRole(UserRole.Maintainer, group.role)} onUpdateRowClick={onUpdateRowClick} diff --git a/src/features/transfer/TransferList/index.tsx b/src/features/transfer/TransferList/index.tsx index 4a7fe35..dee1297 100644 --- a/src/features/transfer/TransferList/index.tsx +++ b/src/features/transfer/TransferList/index.tsx @@ -13,6 +13,7 @@ export const TransferList = memo(({ group, onUpdateRowClick, onDeleteRowClick }: queryKey={[TransferQueryKey.GET_TRANSFERS, group.data.id]} queryFunction={(params) => transferService.getTransfers({ ...params, group_id: group.data.id })} columns={TRANSFER_LIST_COLUMNS} + isHiddenRowActions={!hasAccessByUserRole(UserRole.Developer, group.role)} isRenderUpdateRowAction={() => hasAccessByUserRole(UserRole.Developer, group.role)} isRenderDeleteRowAction={() => hasAccessByUserRole(UserRole.Maintainer, group.role)} onUpdateRowClick={onUpdateRowClick}