Skip to content

Instantly share code, notes, and snippets.

@ejiro
Created September 20, 2017 18:50
Show Gist options
  • Save ejiro/df4420609b4f91ef4a583556f0f5c8d5 to your computer and use it in GitHub Desktop.
Save ejiro/df4420609b4f91ef4a583556f0f5c8d5 to your computer and use it in GitHub Desktop.
/**
* Sample access control list.
*/
rule EverybodyCanReadEverything {
description: "Allow all participants read access to all resources"
participant: "org.acme.sample.User"
operation: READ
resource: "org.acme.sample.*"
action: ALLOW
}
rule EverybodyCanSubmitTransactions {
description: "Allow all participants to submit transactions"
participant: "org.acme.sample.User"
operation: CREATE
resource: "org.acme.sample.User"
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment