From 284b21ca40988a7c0a5b1b9335ae81b493733976 Mon Sep 17 00:00:00 2001 From: vgema Date: Fri, 4 Oct 2024 16:28:41 +0200 Subject: [PATCH] MODFQMMGR-496 Create a unique permission for each endpoint to retrieve content and group them within a permission set. --- descriptors/ModuleDescriptor-template.json | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 0be7693f..07c66090 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -62,13 +62,13 @@ { "methods": ["GET"], "pathPattern": "/query/{query-id}", - "permissionsRequired": ["fqm.query.async.results.get"], + "permissionsRequired": ["fqm.query.async.results.query.get"], "modulePermissions": ["perms.users.get", "user-tenants.collection.get", "consortia.user-tenants.collection.get"] }, { "methods": ["GET"], "pathPattern": "/query/{query-id}/sortedIds", - "permissionsRequired": ["fqm.query.async.results.get"], + "permissionsRequired": ["fqm.query.async.results.sortedids.get"], "modulePermissions": ["perms.users.get", "user-tenants.collection.get", "consortia.user-tenants.collection.get"] }, { @@ -86,7 +86,7 @@ { "methods": ["POST"], "pathPattern": "/query/contents", - "permissionsRequired": ["fqm.query.async.results.get"], + "permissionsRequired": ["fqm.query.async.results.post"], "modulePermissions": ["perms.users.get", "user-tenants.collection.get", "consortia.user-tenants.collection.get"] }, { @@ -169,6 +169,29 @@ "permissionName": "fqm.query.async.results.get", "displayName": "FQM - Retrieve results of a submitted query", "description": "Retrieve results of a submitted query", + "visible": true, + "subPermissions": [ + "fqm.query.async.results.post", + "fqm.query.async.results.sortedids.get", + "fqm.query.async.results.query.get" + ] + }, + { + "permissionName": "fqm.query.async.results.sortedids.get", + "displayName": "FQM - Retrieve results of a submitted query with sorted Ids ", + "description": "Retrieve results of a submitted query with sorted Ids", + "visible": true + }, + { + "permissionName": "fqm.query.async.results.query.get", + "displayName": "FQM - Retrieve results of a submitted query", + "description": "Retrieve results of a submitted query", + "visible": true + }, + { + "permissionName": "fqm.query.async.results.post", + "displayName": "FQM - Retrieve results of a submitted query", + "description": "Retrieve results of a submitted query", "visible": true }, {