forked from IBM/Blockchain_for_TelcoRoaming
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpermissions.acl
38 lines (35 loc) · 1.04 KB
/
permissions.acl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Author : Amandeep Singh : singham@us.ibm.com
*/
/**
* Access control rules for mynetwork
*/
/*rule Default {
description: "Allow all participants access to all resources"
participant: "ANY"
operation: ALL
resource: "org.gsc.roaming.*"
action: ALLOW
}*/
rule EverybodyCanReadEverything {
description: "Allow all participants read access to all resources"
participant: "org.gsc.roaming.CSP"
operation: READ
resource: "org.gsc.roaming.*"
action: ALLOW
}
rule EverybodyCanSubmitTransactions {
description: "Allow all participants to submit transactions"
participant: "org.gsc.roaming.CSP"
operation: CREATE
resource: "org.gsc.roaming.Test"
action: ALLOW
}
rule OwnerHasFullAccessToTheirAssets {
description: "Allow all participants full access to their assets"
participant(p): "org.gsc.roaming.CSP"
operation: ALL
resource(r): "org.gsc.roaming.rs"
condition: (r.ho.getIdentifier() === p.getIdentifier() || r.rp.getIdentifier() === p.getIdentifier())
action: ALLOW
}