From e61d765aab35b3c83b2ab0ec8c1775a1f5eeeec9 Mon Sep 17 00:00:00 2001 From: vsmk98 Date: Wed, 17 Apr 2019 21:37:41 +0800 Subject: [PATCH] permissions: removed unwanted code --- core/quorum/api.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/quorum/api.go b/core/quorum/api.go index 5741e5910..6df51c98b 100644 --- a/core/quorum/api.go +++ b/core/quorum/api.go @@ -763,21 +763,3 @@ func (s *QuorumControlsAPI) getTxParams(txa ethapi.SendTxArgs, w accounts.Wallet } return frmAcct, transactOpts, gasLimit, gasPrice, nonce } - -// checks if the account performing the operation has sufficient access privileges -func valAccountAccessVoter(fromAcct, targetAcct common.Address) (error, ExecStatus) { - acctAccess := types.GetAcctAccess(fromAcct) - // only accounts with full access will be allowed to manage voters - if acctAccess != types.FullAccess { - return errors.New("Account performing the operation does not have sufficient access"), ErrAccountAccess - } - - // An account with minimum of transact access can be a voter - if targetAcct != (common.Address{}) { - acctAccess = types.GetAcctAccess(targetAcct) - if acctAccess == types.ReadOnly { - return errors.New("Voter account does not have sufficient access"), ErrVoterAccountAccess - } - } - return nil, ExecSuccess -}