当我尝试以参与者身份登录我的业务网络以访问该交易记录时,遇到以下错误:

时间:2018-10-31 10:06:53

标签: hyperledger-fabric hyperledger blockchain hyperledger-composer

t:参与者'org.gowdanar.gfunds.Chit#gfunds-001'对资源'org.hyperledger.composer.system.Network#empty-business-network@0.0.2-deploy没有读取权限.4'

1 个答案:

答案 0 :(得分:0)

诸如您的权限.acl文件(ACL规则)之类的声音没有正确的权限。

rule AllParticipantsCanAccessTheNetwork {
   description: "Allow all participants to access the network"
   participant: "org.hyperledger.composer.system.Participant"
   operation: READ
   resource: "org.hyperledger.composer.system.Network"
   action: ALLOW
}

例如,下面可能是一组通用规则(规则2将取代FYI之上的规则):

/**
 * Access control rules for mynetwork
 */
rule Default {
    description: "Allow all participants access to all resources"
    participant: "ANY"
    operation: ALL
    resource: "org.gowdanar.gfunds.*"
    action: ALLOW
}

rule SystemACL {
    description:  "System ACL to permit all access"
    participant: "org.hyperledger.composer.system.Participant"
    operation: ALL
    resource: "org.hyperledger.composer.system.**"
    action: ALLOW
}

rule NetworkAdminUser {
    description: "Grant business network administrators full access to user resources"
    participant: "org.hyperledger.composer.system.NetworkAdmin"
    operation: ALL
    resource: "**"
    action: ALLOW
}

rule NetworkAdminSystem {
    description: "Grant business network administrators full access to system resources"
    participant: "org.hyperledger.composer.system.NetworkAdmin"
    operation: ALL
    resource: "org.hyperledger.composer.system.**"
    action: ALLOW
}