changeset 121:ba9d72ecdbc4

fix labels on system resources
author Alain Mazy <am@osimis.io>
date Mon, 18 Sep 2023 16:33:08 +0200
parents 9ebcda90587f
children db60c361e395 8befb35b5e42
files NEWS Plugin/AccessedResource.cpp
diffstat 2 files changed, 16 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Sep 12 14:31:09 2023 +0200
+++ b/NEWS	Mon Sep 18 16:33:08 2023 +0200
@@ -1,3 +1,16 @@
+Pending changes in the mainline
+===============================
+
+* Now handling permissions based on labels from a user profile:
+  - filter the results from tools/find to grant access only to the 
+    authorized_labels from the user profile
+  - grants access to resources (studies) based on their labels and
+    the authorized_labels from the user profile.
+  - check the https://github.com/orthanc-team/orthanc-auth-service
+    sample project for more details
+* Added integration tests in the https://hg.orthanc-server.com/orthanc-tests/
+  repository.
+
 2023-06-21 - v 0.5.3
 ====================
 
--- a/Plugin/AccessedResource.cpp	Tue Sep 12 14:31:09 2023 +0200
+++ b/Plugin/AccessedResource.cpp	Mon Sep 18 16:33:08 2023 +0200
@@ -84,16 +84,9 @@
     }
   }
 
-    const std::set<std::string>& AccessedResource::GetLabels() const
-    {
-    if (level_ == AccessLevel_System)
-    {
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);        
-    }
-    else
-    {
-      return labels_;
-    }
+  const std::set<std::string>& AccessedResource::GetLabels() const
+  {
+    return labels_;
   }
 
 }