users now require permission to create containers -> bookbags
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Mar 2006 22:43:11 +0000 (22:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Mar 2006 22:43:11 +0000 (22:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3310 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm

index d5ff96d..98daf0b 100644 (file)
@@ -183,6 +183,11 @@ sub bucket_create {
                        $authtoken, $bucket->owner, 'CREATE_CONTAINER' );
        return $evt if $evt;
 
+       if( $staff->id eq $target->id ) {
+               $evt = $U->check_perms($target->id, $target->home_ou, 'CREATE_MY_CONTAINER');
+               return $evt if $evt;
+       }
+
        $logger->activity( "User " . $staff->id . 
                " creating a new container for user " . $bucket->owner );