From: erickson Date: Wed, 21 Nov 2007 15:44:27 +0000 (+0000) Subject: to move a workstation, you need perms at original org and destination org X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=12bb412f0dec3a650ea483a0f0594f87a24f6bba;p=Evergreen.git to move a workstation, you need perms at original org and destination org git-svn-id: svn://svn.open-ils.org/ILS/trunk@8103 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm index edba3dd29f..9330f96af7 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm @@ -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);