diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json
index 7dc9be02..4e775f55 100644
--- a/descriptors/ModuleDescriptor-template.json
+++ b/descriptors/ModuleDescriptor-template.json
@@ -78,7 +78,7 @@
}, {
"methods": ["POST"],
"pathPattern": "/loan-storage/loans/anonymize/{userId}",
- "permissionsRequired": ["circulation-storage.loans.collection.anonymize.user.post"]
+ "permissionsRequired": ["circulation-storage.loans.anonymize.execute"]
}
]
},
@@ -757,9 +757,10 @@
"description": "Delete individual loan from storage"
},
{
- "permissionName": "circulation-storage.loans.collection.anonymize.user.post",
+ "permissionName": "circulation-storage.loans.anonymize.execute",
"displayName": "Circulation storage - anonymize loans for a user",
- "description": "Anonymize closed loans for a single user"
+ "description": "Anonymize closed loans for a single user",
+ "replaces": ["circulation-storage.loans.collection.anonymize.user.post"]
},
{
"permissionName": "anonymize-storage-loans.post",
@@ -1082,7 +1083,7 @@
"circulation-storage.loans.item.put",
"circulation-storage.loans.item.delete",
"circulation-storage.loans.collection.delete",
- "circulation-storage.loans.collection.anonymize.user.post",
+ "circulation-storage.loans.anonymize.execute",
"circulation-storage.loans-history.collection.get",
"circulation-storage.circulation-rules.get",
"circulation-storage.circulation-rules.put",
diff --git a/pom.xml b/pom.xml
index 4e911d1e..40555af2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,6 +31,9 @@
4.5.9
35.3.0
6.1.5
+
+
+ 1.0.0
@@ -513,6 +516,18 @@
+
+ org.folio
+ folio-module-descriptor-validator
+ ${folio-module-descriptor-validator.version}
+
+
+
+ validate
+
+
+
+