From 91b186b0c23d2e3bf04ad113617b0383a91b1f11 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 27 Feb 2006 21:21:20 +0000 Subject: [PATCH] changed fleshed container method to return non-pub buckets without requiring a permission (in addition to the publick bucket retrievel method) git-svn-id: svn://svn.open-ils.org/ILS/trunk@3209 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/OpenILS/Application/Actor/Container.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm index 3ab8c2ab8b..44ade3ccba 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm @@ -85,8 +85,10 @@ sub bucket_flesh { my $bkt = $apputils->simplereq( $svc, "$meth.retrieve", $bucket ); if(!$bkt) {return undef}; - my( $user, $e ) = $apputils->checkrequestor( $staff, $bkt->owner, 'VIEW_CONTAINER' ); - return $e if $e; + if(!$bkt->pub) { + my( $user, $e ) = $apputils->checkrequestor( $staff, $bkt->owner, 'VIEW_CONTAINER' ); + return $e if $e; + } $bkt->items( $apputils->simplereq( $svc, "$meth"."_item.search.bucket.atomic", $bucket ) ); -- 2.43.2