mirror of https://github.com/poanetwork/quorum.git
permissions: validation to check account status for accounts linked to admin roles
This commit is contained in:
parent
2716937f2e
commit
37f3581192
|
@ -374,7 +374,7 @@ func (o *RoleCache) GetRoleList() []RoleInfo {
|
||||||
// default access
|
// default access
|
||||||
func GetAcctAccess(acctId common.Address) AccessType {
|
func GetAcctAccess(acctId common.Address) AccessType {
|
||||||
if a := AcctInfoMap.GetAccount(acctId); a != nil && a.Status == AcctActive {
|
if a := AcctInfoMap.GetAccount(acctId); a != nil && a.Status == AcctActive {
|
||||||
if a.RoleId == networkAdminRole || a.RoleId == orgAdminRole {
|
if (a.RoleId == networkAdminRole || a.RoleId == orgAdminRole) && a.Status == AcctActive {
|
||||||
return FullAccess
|
return FullAccess
|
||||||
}
|
}
|
||||||
if o := OrgInfoMap.GetOrg(a.OrgId); o != nil && o.Status == OrgApproved {
|
if o := OrgInfoMap.GetOrg(a.OrgId); o != nil && o.Status == OrgApproved {
|
||||||
|
|
Loading…
Reference in New Issue