Skip to content

Commit b6d2538

Browse files
Add self approve limited by collection type to dis-migration-service
1 parent 74fe522 commit b6d2538

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

import-script/policies.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@
130130
"users/dis-migration-service"
131131
],
132132
"role" : "legacy-admin",
133-
"condition" : {}
133+
"condition": {
134+
"attribute": "collection_type",
135+
"operator": "StringEquals",
136+
"values": [
137+
"automated"
138+
]
139+
}
134140
},
135141
{
136142
"id" : "data-import",

import-script/roles.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@
138138
"name": "legacy-admin",
139139
"permissions": [
140140
"legacy:edit",
141-
"legacy:read"
141+
"legacy:read",
142+
"legacy:self-approve"
142143
]
143144
},
144145
{

0 commit comments

Comments
 (0)