From 5c6820e9115024e148c22f9aaca334629782082d Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Mon, 6 May 2024 16:47:23 +0200 Subject: [PATCH 1/2] remove permissions check --- .../src/components/LiquidityEpochSection.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/centrifuge-app/src/components/LiquidityEpochSection.tsx b/centrifuge-app/src/components/LiquidityEpochSection.tsx index c08d7edd48..0d145cfecd 100644 --- a/centrifuge-app/src/components/LiquidityEpochSection.tsx +++ b/centrifuge-app/src/components/LiquidityEpochSection.tsx @@ -71,19 +71,8 @@ function EpochStatusOngoing({ pool }: { pool: Pool }) { const [account] = useSuitableAccounts({ poolId: pool.id, proxyType: ['Borrow', 'Invest'] }) const api = useCentrifugeApi() const orders = usePoolAccountOrders(pool.id) - const poolPermissions = usePoolPermissions(pool.id) const { showOrderExecution } = useDebugFlags() - const isIssuer = account - ? Object.keys(poolPermissions || {}) - .filter( - (address) => - poolPermissions?.[address].roles.includes('InvestorAdmin') || - poolPermissions?.[address].roles.includes('LoanAdmin') - ) - .includes(account.actingAddress) - : false - const { execute: closeEpochTx, isLoading: loadingClose } = useCentrifugeTransaction( 'Start order execution', (cent) => (args: [poolId: string, batchSolution: boolean, collect: boolean], options) => @@ -166,7 +155,7 @@ function EpochStatusOngoing({ pool }: { pool: Pool }) { )} */} - {(isIssuer || showOrderExecution) && ( + {(account || showOrderExecution) && (