From 1499829806840638681c9e07602610a90aca6b2a Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 8 Aug 2006 21:29:33 +0000 Subject: [PATCH] fixed perm logic error git-svn-id: svn://svn.open-ils.org/ILS/trunk@5382 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm index d32c757d41..f481983b7b 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm @@ -469,7 +469,9 @@ sub container_update { my ( $dbcontainer, $evt ) = $U->fetch_container_e($e, $container->id, $class); return $evt if $evt; - return $e->event unless $e->allowed('UPDATE_CONTAINER'); + if( $e->requestor->id ne $container->owner ) { + return $e->event unless $e->allowed('UPDATE_CONTAINER'); + } my $stat; if( $class eq 'copy' ) { -- 2.11.0