fixed perm logic error
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 21:29:33 +0000 (21:29 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 21:29:33 +0000 (21:29 +0000)
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

index d32c757..f481983 100644 (file)
@@ -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' ) {