From 12bb412f0dec3a650ea483a0f0594f87a24f6bba Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 21 Nov 2007 15:44:27 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/Actor.pm | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.11.0