to move a workstation, you need perms at original org and destination org
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Nov 2007 15:44:27 +0000 (15:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Nov 2007 15:44:27 +0000 (15:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8103 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index edba3dd..9330f96 100644 (file)
@@ -2464,6 +2464,8 @@ sub register_workstation {
                            return $e->die_event unless 
                     $e->allowed('UPDATE_WORKSTATION', $existing->owning_lib); 
 
+                           return $e->die_event unless $e->allowed('UPDATE_WORKSTATION', $owner); 
+
                 $existing->owning_lib($owner);
                            return $e->die_event unless $e->update_actor_workstation($existing);