changeset 329:75f5cc116493

New default permissions for jobs
author Alain Mazy <am@orthanc.team>
date Wed, 22 Apr 2026 19:24:31 +0200
parents fb84f7598e79
children f0f7dac0d705
files NEWS Plugin/DefaultConfiguration.json
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Apr 09 11:26:00 2026 +0200
+++ b/NEWS	Wed Apr 22 19:24:31 2026 +0200
@@ -1,3 +1,9 @@
+Pending changes
+===============
+
+* New default permissions for jobs
+
+
 2026-04-09 - v 0.11.2
 =====================
 
--- a/Plugin/DefaultConfiguration.json	Thu Apr 09 11:26:00 2026 +0200
+++ b/Plugin/DefaultConfiguration.json	Wed Apr 22 19:24:31 2026 +0200
@@ -97,8 +97,8 @@
             ["post", "^/stl/encode-rtstruct$", "all|upload"],
             ["post", "^/stl/encode-nifti$", "all|upload"],
 
-            // monitor jobs you have created
-            ["get" , "^/jobs/([a-f0-9-]+)$", "all|send|modify|anonymize|q-r-remote-modalities"],
+            // monitor a single job when you know its id (e.g: a job you have created)
+            ["get" , "^/jobs/([a-f0-9-]+)$", "all|send|modify|anonymize|q-r-remote-modalities|admin-permissions"],
 
             // interacting with peers/modalities/dicomweb
             ["post", "^/(peers|modalities)/(.*)/(store|store-straight)$", "all|send"],
@@ -150,7 +150,12 @@
             // create-edit-delete worklists 
             ["post" , "^/worklists/create$", "all|worklists"],
             ["put", "^/worklists/(.*)$", "all|worklists"],
-            ["delete" , "^/worklists/(.*)$", "all|worklists"]
+            ["delete" , "^/worklists/(.*)$", "all|worklists"],
+
+            // all jobs page
+            ["get", "^/jobs$", "admin-permissions"],
+            ["post", "^/jobs/([a-f0-9-]+)/(pause|resume|resubmit|cancel)$", "admin-permissions"],
+            ["delete", "^/jobs/([a-f0-9-]+)$", "admin-permissions"]
         ]
 
         // If you just need to add a few permissions, while preserving the default ones,