From 65fbc7836f3e4fd6af598164b0a45dfb504308fd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 5 Jul 2023 13:06:36 +0200 Subject: [PATCH] Bug 34145: Allow access the logged in branch's limited data --- Koha/Patron.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 2a8eecf9f66..08f1891c75d 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1717,6 +1717,8 @@ sub libraries_where_can_see_things { } } + push @restricted_branchcodes, C4::Context->userenv->{branch}; + @restricted_branchcodes = grep { defined $_ } @restricted_branchcodes; @restricted_branchcodes = uniq(@restricted_branchcodes); @restricted_branchcodes = sort(@restricted_branchcodes); -- 2.25.1