diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json
index 2b432c4..ee2303e 100644
--- a/descriptors/ModuleDescriptor-template.json
+++ b/descriptors/ModuleDescriptor-template.json
@@ -66,10 +66,7 @@
{
"methods": ["GET"],
"pathPattern": "/bl-users/by-username/{id}",
- "permissionsRequired": [
- "users-bl.item.get",
- "perms.users.get"
- ],
+ "permissionsRequired": ["users-bl.users-by-username.item.get"],
"modulePermissions": [
"users.item.get",
"users.collection.get",
@@ -83,7 +80,7 @@
{
"methods": ["GET"],
"pathPattern": "/bl-users/by-id/{id}",
- "permissionsRequired": ["users-bl.item.get", "perms.users.get"],
+ "permissionsRequired": ["users-bl.item.get"],
"modulePermissions": [
"users.item.get",
"users.collection.get",
@@ -124,7 +121,7 @@
{
"methods": ["GET"],
"pathPattern": "/bl-users/by-username/{name}/open-transactions",
- "permissionsRequired": ["users-bl.transactions.get"],
+ "permissionsRequired": ["users-bl.transactions-by-username.get"],
"modulePermissions": [
"users.collection.get",
"circulation-storage.loans.collection.get",
@@ -294,6 +291,11 @@
"displayName" : "users-bl item get",
"description" : "Get a single composite user record by id"
},
+ {
+ "permissionName" : "users-bl.users-by-username.item.get",
+ "displayName" : "users-bl item get by username",
+ "description" : "Get a single composite user record by username"
+ },
{
"permissionName" : "users-bl.item.post",
"displayName" : "users-bl item post",
@@ -329,12 +331,18 @@
"displayName": "users-bl transactions get",
"description": "Get summary of open transactions of user record"
},
+ {
+ "permissionName": "users-bl.transactions-by-username.get",
+ "displayName": "users-bl transactions get by username",
+ "description": "Get summary of open transactions of user record by its username"
+ },
{
"permissionName" : "users-bl.all",
"displayName" : "users-bl all",
"description" : "All user business-logic permissions",
"subPermissions" : [
"users-bl.collection.get",
+ "users-bl.users-by-username.item.get",
"users-bl.item.get",
"users-bl.item.post",
"users-bl.item.put",
@@ -342,7 +350,8 @@
"users-bl.password-reset-link.generate",
"users-bl.password-reset-link.validate",
"users-bl.password-reset-link.reset",
- "users-bl.transactions.get"
+ "users-bl.transactions.get",
+ "users-bl.transactions-by-username.get"
],
"visible" : false
}
diff --git a/pom.xml b/pom.xml
index a05d860..8b491d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,11 +46,14 @@
UTF-8
UTF-8
35.3.0
- 5.10.0
${basedir}/ramls
4.5.10
17
1.9.22.1
+
+
+ 5.10.0
+ 1.0.0
@@ -466,6 +469,19 @@
+
+ org.folio
+ folio-module-descriptor-validator
+ ${folio-module-descriptor-validator.version}
+
+
+
+ validate
+
+
+
+
+