# HG changeset patch # User Alain Mazy # Date 1695047588 -7200 # Node ID ba9d72ecdbc4eee5821c00c737ec30a44d5c701c # Parent 9ebcda90587ff70247b1f71b8ead95d2fcb7927c fix labels on system resources diff -r 9ebcda90587f -r ba9d72ecdbc4 NEWS --- 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 ==================== diff -r 9ebcda90587f -r ba9d72ecdbc4 Plugin/AccessedResource.cpp --- 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& AccessedResource::GetLabels() const - { - if (level_ == AccessLevel_System) - { - throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); - } - else - { - return labels_; - } + const std::set& AccessedResource::GetLabels() const + { + return labels_; } }